您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

46 行
1.2KB

  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. [metadata]
  4. license_file = LICENSE
  5. description-file = README.md
  6. [tool:pytest]
  7. norecursedirs =
  8. .git
  9. dist
  10. build
  11. addopts =
  12. --doctest-modules
  13. --durations=25
  14. --color=yes
  15. [flake8]
  16. max-line-length = 120
  17. exclude = .tox,*.egg,build,temp
  18. select = E,W,F
  19. doctests = True
  20. verbose = 2
  21. # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
  22. format = pylint
  23. # see: https://www.flake8rules.com/
  24. ignore =
  25. E731 # Do not assign a lambda expression, use a def
  26. F405 # name may be undefined, or defined from star imports: module
  27. E402 # module level import not at top of file
  28. F401 # module imported but unused
  29. W504 # line break after binary operator
  30. E127 # continuation line over-indented for visual indent
  31. W504 # line break after binary operator
  32. E231 # missing whitespace after ‘,’, ‘;’, or ‘:’
  33. E501 # line too long
  34. F403 # ‘from module import *’ used; unable to detect undefined names
  35. [isort]
  36. # https://pycqa.github.io/isort/docs/configuration/options.html
  37. line_length = 120
  38. multi_line_output = 0