setup.cfg 934 B

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