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.cfg 2.3 kB

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

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