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.

60 linhas
1.7KB

  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