pyproject.toml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. [project]
  2. requires-python = '>=3.9'
  3. [tool.ruff]
  4. # Target non-EOL releases at minimum, or later if needed
  5. # https://devguide.python.org/versions/
  6. target-version = 'py39'
  7. # Ideally do soft 80, and hard break at 127 as that's the GitHub editor length
  8. line-length = 127
  9. [tool.ruff.lint.flake8-quotes]
  10. # Note that CI runs some flake8 tests itself
  11. inline-quotes = 'single'
  12. multiline-quotes = 'single'
  13. [tool.ruff.format]
  14. quote-style = 'single'
  15. indent-style = 'tab'
  16. [tool.ruff.lint]
  17. select = ['ALL']
  18. ignore = [
  19. 'W191', # We use tabs for indents, disabling this atrocious PEP 8 recommendation
  20. 'D206', # ^
  21. 'D401', # non-imperative-mood - Wants docstrings in imperative language but it's really not foolproof, disable
  22. 'ERA001', # Test for commented out code, but it has way too many false positives, so disable
  23. 'FBT001', # boolean-type-hint-positional-argument - Allow positional booleans in functions, it's not really that much of an issue
  24. 'FBT002', # boolean-default-value-positional-argument - ^
  25. 'FBT003', # boolean-positional-value-in-call - ^
  26. ]