You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.travis.cfg 4.1 kB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [tool:pytest]
  2. testpaths = tests/
  3. addopts = --ignore=tests/test_documentation.py
  4. --ignore=tests/test_yapf_format.py
  5. --ignore=tests/pending/test_decorators.py
  6. --ignore=tests/pending/test_documentation.py
  7. --ignore=tests/pending/test_logging.py
  8. --ignore=tests/pending/test_pydocstyle.py
  9. --ignore=tests/pending/test_layers_padding.py
  10. --ignore=tests/pending/test_timeout.py
  11. --ignore=tests/pending/test_layers_super_resolution.py
  12. --ignore=tests/pending/test_reuse_mlp.py
  13. --ignore=tests/pending/test_layers_importer.py
  14. --ignore=tests/pending/test_layers_time_distributed.py
  15. --ignore=tests/pending/test_layers_spatial_transformer.py
  16. --ignore=tests/pending/test_layers_stack.py
  17. --ignore=tests/pending/test_mnist_simple.py
  18. --ignore=tests/pending/test_tf_layers.py
  19. --ignore=tests/pending/test_array_ops.py
  20. --ignore=tests/pending/test_layers_basic.py
  21. --ignore=tests/pending/test_models.py
  22. --ignore=tests/pending/test_optimizer_amsgrad.py
  23. --ignore=tests/pending/test_logging_hyperdash.py
  24. --ignore=tests/pending/test_yapf_format.py
  25. --ignore=tests/pending/test_layers_normalization.py
  26. --ignore=tests/pending/test_utils_predict.py
  27. --ignore=tests/pending/test_layers_flow_control.py
  28. --ignore=tests/performance_test/vgg/tl2-autograph.py
  29. --ignore=tests/performance_test/vgg/tf2-eager.py
  30. --ignore=tests/performance_test/vgg/exp_config.py
  31. --ignore=tests/performance_test/vgg/tl2-eager.py
  32. --ignore=tests/performance_test/vgg/tf2-autograph.py
  33. --ignore=tests/performance_test/vgg/keras_test.py
  34. --ignore=tests/performance_test/vgg/pytorch_test.py
  35. [flake8]
  36. max-line-length = 120
  37. ignore =
  38. D301
  39. E221 # Space before equal sign
  40. E251 # Space after equal sign
  41. exclude =
  42. .git,
  43. venv,
  44. __pycache__,
  45. .pytest_cache,
  46. tensorlayer.egg-info,
  47. build,
  48. dist,
  49. img
  50. [yapf]
  51. based_on_style=google
  52. # The number of columns to use for indentation.
  53. indent_width = 4
  54. # The column limit.
  55. column_limit=120
  56. # Place each dictionary entry onto its own line.
  57. each_dict_entry_on_separate_line = True
  58. # Put closing brackets on a separate line, dedented, if the bracketed
  59. # expression can't fit in a single line. Applies to all kinds of brackets,
  60. # including function definitions and calls. For example:
  61. #
  62. # config = {
  63. # 'key1': 'value1',
  64. # 'key2': 'value2',
  65. # } # <--- this bracket is dedented and on a separate line
  66. #
  67. # time_series = self.remote_client.query_entity_counters(
  68. # entity='dev3246.region1',
  69. # key='dns.query_latency_tcp',
  70. # transform=Transformation.AVERAGE(window=timedelta(seconds=60)),
  71. # start_ts=now()-timedelta(days=3),
  72. # end_ts=now(),
  73. # ) # <--- this bracket is dedented and on a separate line
  74. dedent_closing_brackets=True
  75. # Do not split consecutive brackets. Only relevant when DEDENT_CLOSING_BRACKETS is set
  76. coalesce_brackets = False
  77. # Align closing bracket with visual indentation.
  78. align_closing_bracket_with_visual_indent = False
  79. # Split named assignments onto individual lines.
  80. split_before_named_assigns = False
  81. # If an argument / parameter list is going to be split, then split before the first argument.
  82. split_before_first_argument = True
  83. # Split before arguments if the argument list is terminated by a comma.
  84. split_arguments_when_comma_terminated = False
  85. # Insert a space between the ending comma and closing bracket of a list, etc.
  86. space_between_ending_comma_and_closing_bracket = True
  87. # Join short lines into one line. E.g., single line if statements.
  88. join_multiple_lines = True
  89. # Do not include spaces around selected binary operators.
  90. # Example: 1 + 2 * 3 - 4 / 5 => 1 + 2*3 - 4/5
  91. no_spaces_around_selected_binary_operators = True
  92. # Allow lambdas to be formatted on more than one line.
  93. allow_multiline_lambdas = True
  94. SPLIT_PENALTY_FOR_ADDED_LINE_SPLIT = 10
  95. SPLIT_PENALTY_AFTER_OPENING_BRACKET = 500

TensorLayer3.0 是一款兼容多种深度学习框架为计算后端的深度学习库。计划兼容TensorFlow, Pytorch, MindSpore, Paddle.