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