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_doc.cfg 2.4 kB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [tool:pytest]
  2. testpaths = tests/
  3. python_files=*test_documentation*
  4. *test_yapf_format*
  5. [flake8]
  6. max-line-length = 120
  7. ignore =
  8. D301
  9. E221 # Space before equal sign
  10. E251 # Space after equal sign
  11. exclude =
  12. .git,
  13. venv,
  14. __pycache__,
  15. .pytest_cache,
  16. tensorlayer.egg-info,
  17. build,
  18. dist,
  19. img
  20. [yapf]
  21. based_on_style=google
  22. # The number of columns to use for indentation.
  23. indent_width = 4
  24. # The column limit.
  25. column_limit=120
  26. # Place each dictionary entry onto its own line.
  27. each_dict_entry_on_separate_line = True
  28. # Put closing brackets on a separate line, dedented, if the bracketed
  29. # expression can't fit in a single line. Applies to all kinds of brackets,
  30. # including function definitions and calls. For example:
  31. #
  32. # config = {
  33. # 'key1': 'value1',
  34. # 'key2': 'value2',
  35. # } # <--- this bracket is dedented and on a separate line
  36. #
  37. # time_series = self.remote_client.query_entity_counters(
  38. # entity='dev3246.region1',
  39. # key='dns.query_latency_tcp',
  40. # transform=Transformation.AVERAGE(window=timedelta(seconds=60)),
  41. # start_ts=now()-timedelta(days=3),
  42. # end_ts=now(),
  43. # ) # <--- this bracket is dedented and on a separate line
  44. dedent_closing_brackets=True
  45. # Do not split consecutive brackets. Only relevant when DEDENT_CLOSING_BRACKETS is set
  46. coalesce_brackets = False
  47. # Align closing bracket with visual indentation.
  48. align_closing_bracket_with_visual_indent = False
  49. # Split named assignments onto individual lines.
  50. split_before_named_assigns = False
  51. # If an argument / parameter list is going to be split, then split before the first argument.
  52. split_before_first_argument = True
  53. # Split before arguments if the argument list is terminated by a comma.
  54. split_arguments_when_comma_terminated = False
  55. # Insert a space between the ending comma and closing bracket of a list, etc.
  56. space_between_ending_comma_and_closing_bracket = True
  57. # Join short lines into one line. E.g., single line if statements.
  58. join_multiple_lines = True
  59. # Do not include spaces around selected binary operators.
  60. # Example: 1 + 2 * 3 - 4 / 5 => 1 + 2*3 - 4/5
  61. no_spaces_around_selected_binary_operators = True
  62. # Allow lambdas to be formatted on more than one line.
  63. allow_multiline_lambdas = True
  64. SPLIT_PENALTY_FOR_ADDED_LINE_SPLIT = 10
  65. SPLIT_PENALTY_AFTER_OPENING_BRACKET = 500

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