setup.cfg 934 B

123456789101112131415161718192021222324252627282930
  1. [flake8]
  2. # File filtering is taken care of in pre-commit.
  3. # E203 false positive, see https://github.com/PyCQA/pycodestyle/issues/373
  4. # B011 We don't use PYTHONOPTIMIZE.
  5. # XXX: E501 is ignored, which disables line length checking.
  6. # Currently, the black formatter doesn't wrap long strings: https://github.com/psf/black/issues/182#issuecomment-385325274
  7. # We already have a lot of E501's - these are lines black didn't wrap.
  8. # But rather than append # noqa: E501 to all of them, we just ignore E501 for now.
  9. extend-ignore = E203,E501,E402,E731,B007,B009,B010,B011,B020
  10. per-file-ignores =
  11. # allow prints in tests
  12. tests/*: S002
  13. # these scripts must have minimal dependencies so opt out of the usual sentry rules
  14. tools/*: S
  15. .github/*: S
  16. [flake8:local-plugins]
  17. paths = .
  18. extension =
  19. S=tools.flake8_plugin:SentryCheck
  20. [bdist_wheel]
  21. python-tag = py38
  22. [coverage:run]
  23. omit =
  24. src/sentry/migrations/*
  25. source = .