setup.cfg 965 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [wheel]
  2. universal = true
  3. [flake8]
  4. exclude = build,venv,.tox,.git,.pytest_cache
  5. ignore = E402,E501,E731,E741,W503
  6. max_line_length = 120
  7. per_file_ignores =
  8. devscripts/lazy_load_template.py: F401
  9. [autoflake]
  10. ignore-init-module-imports = true
  11. ignore-pass-after-docstring = true
  12. remove-all-unused-imports = true
  13. remove-duplicate-keys = true
  14. remove-unused-variables = true
  15. [tool:pytest]
  16. addopts = -ra -v --strict-markers
  17. markers =
  18. download
  19. [tox:tox]
  20. skipsdist = true
  21. envlist = py{36,37,38,39,310,311},pypy{36,37,38,39}
  22. skip_missing_interpreters = true
  23. [testenv] # tox
  24. deps =
  25. pytest
  26. commands = pytest {posargs:"-m not download"}
  27. passenv = HOME # For test_compat_expanduser
  28. setenv =
  29. # PYTHONWARNINGS = error # Catches PIP's warnings too
  30. [isort]
  31. py_version = 37
  32. multi_line_output = VERTICAL_HANGING_INDENT
  33. line_length = 80
  34. reverse_relative = true
  35. ensure_newline_before_comments = true
  36. include_trailing_comma = true
  37. known_first_party =
  38. test