setup.cfg 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. [tool:pytest]
  2. python_files = test*.py
  3. # Note: When updating pytest tweaks, make sure to update getsentry
  4. # When updating the traceback format, make sure to update .github/pytest.json
  5. addopts = --tb=short -p no:doctest -p no:warnings
  6. norecursedirs = bin dist docs htmlcov script hooks node_modules .* {args}
  7. looponfailroots = src tests
  8. selenium_driver = chrome
  9. self-contained-html = true
  10. markers =
  11. snuba: mark a test as requiring snuba
  12. [flake8]
  13. # E203 false positive, see https://github.com/PyCQA/pycodestyle/issues/373
  14. # W605 false positive until python3.8: https://github.com/PyCQA/pycodestyle/issues/755
  15. ignore = F999,E203,E501,E128,E124,E402,W503,W504,W605,E731,C901,B007,B306,B009,B010
  16. exclude = .venv/.git,*/migrations/*,node_modules/*,src/sentry/static/sentry/vendor/*,docs/*,src/south/*,examples/*
  17. # XXX: E501 is ignored, which disables line length checking.
  18. # Currently, the black formatter doesn't wrap long strings: https://github.com/psf/black/issues/182#issuecomment-385325274
  19. # We already have a lot of E501's - these are lines black didn't wrap.
  20. # But rather than append # noqa: E501 to all of them, we just ignore E501 for now.
  21. [bdist_wheel]
  22. python-tag = py27
  23. [coverage:run]
  24. omit =
  25. src/sentry/migrations/*
  26. source =
  27. src
  28. tests