setup.cfg 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [tool:pytest]
  2. python_files = test*.py
  3. addopts = --tb=native -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. markers =
  8. snuba: mark a test as requiring snuba
  9. [flake8]
  10. # E203 false positive, see https://github.com/PyCQA/pycodestyle/issues/373
  11. # W605 false positive until python3.8: https://github.com/PyCQA/pycodestyle/issues/755
  12. ignore = F999,E203,E501,E128,E124,E402,W503,W504,W605,E731,C901,B007,B306,B009,B010
  13. exclude = .venv/.git,*/migrations/*,*/south_migrations/*,node_modules/*,src/sentry/static/sentry/vendor/*,docs/*,src/south/*,examples/*
  14. # XXX: E501 is ignored, which disables line length checking.
  15. # Currently, the black formatter doesn't wrap long strings: https://github.com/psf/black/issues/182#issuecomment-385325274
  16. # We already have a lot of E501's - these are lines black didn't wrap.
  17. # But rather than append # noqa: E501 to all of them, we just ignore E501 for now.
  18. [bdist_wheel]
  19. python-tag = py27
  20. [coverage:run]
  21. omit =
  22. src/sentry/south_migrations/*
  23. src/sentry/migrations/*
  24. source =
  25. src
  26. tests
  27. [isort]
  28. line_length=100
  29. lines_between_sections=1
  30. multi_line_output=5
  31. known_first_party=sentry
  32. default_section=THIRDPARTY
  33. forced_separate=django.contrib,django.utils
  34. indent=' '
  35. skip=setup.py