Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

precommit: yapf (#5494) * precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2 anos atrás
precommit: yapf (#5494) * precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2 anos atrás
precommit: yapf (#5494) * precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2 anos atrás
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Project-wide configuration file, can be used for package metadata and other toll configurations
  2. # Example usage: global configuration for PEP8 (via flake8) setting or default pytest arguments
  3. # Local usage: pip install pre-commit, pre-commit run --all-files
  4. [metadata]
  5. license_file = LICENSE
  6. description_file = README.md
  7. [tool:pytest]
  8. norecursedirs =
  9. .git
  10. dist
  11. build
  12. addopts =
  13. --doctest-modules
  14. --durations=25
  15. --color=yes
  16. [flake8]
  17. max-line-length = 120
  18. exclude = .tox,*.egg,build,temp
  19. select = E,W,F
  20. doctests = True
  21. verbose = 2
  22. # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
  23. format = pylint
  24. # see: https://www.flake8rules.com/
  25. ignore =
  26. E731 # Do not assign a lambda expression, use a def
  27. F405 # name may be undefined, or defined from star imports: module
  28. E402 # module level import not at top of file
  29. F401 # module imported but unused
  30. W504 # line break after binary operator
  31. E127 # continuation line over-indented for visual indent
  32. W504 # line break after binary operator
  33. E231 # missing whitespace after ‘,’, ‘;’, or ‘:’
  34. E501 # line too long
  35. F403 # ‘from module import *’ used; unable to detect undefined names
  36. [isort]
  37. # https://pycqa.github.io/isort/docs/configuration/options.html
  38. line_length = 120
  39. # see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
  40. multi_line_output = 0
  41. [yapf]
  42. based_on_style = pep8
  43. spaces_before_comment = 2
  44. COLUMN_LIMIT = 120
  45. COALESCE_BRACKETS = True
  46. SPACES_AROUND_POWER_OPERATOR = True
  47. SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = False
  48. SPLIT_BEFORE_CLOSING_BRACKET = False
  49. SPLIT_BEFORE_FIRST_ARGUMENT = False
  50. # EACH_DICT_ENTRY_ON_SEPARATE_LINE = False