setup.cfg 1.1 KB

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