setup.cfg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. [flake8]
  8. ignore = F999,E501,E128,E124,E402,W503,E731,C901
  9. max-line-length = 100
  10. exclude = .venv/.git,*/south_migrations/*,node_modules/*,src/sentry/static/sentry/vendor/*,docs/*,src/south/*,examples/*
  11. [bdist_wheel]
  12. python-tag = py27
  13. [pep8]
  14. max-line-length = 100
  15. # W690 is wrong (e.g. it causes functools.reduce to be imported, which is not compat with Python 3)
  16. # E700 isnt that important
  17. # E701 isnt that important
  18. # E711 could be incorrect
  19. # E712 could be incorrect
  20. # E721 says "always use isinstance" which is not the same as type()
  21. ignore = W690,E701,E70,E711,E721
  22. aggressive = 1
  23. exclude = */south_migrations/*
  24. [coverage:run]
  25. omit =
  26. src/sentry/south_migrations/*
  27. src/sentry/migrations/*
  28. source =
  29. src
  30. tests
  31. [isort]
  32. line_length=100
  33. lines_between_sections=1
  34. multi_line_output=5
  35. known_first_party=sentry
  36. default_section=THIRDPARTY
  37. forced_separate=django.contrib,django.utils
  38. indent=' '
  39. skip=setup.py