setup.cfg 941 B

12345678910111213141516171819202122232425262728293031323334
  1. [trial]
  2. test_suite = tests
  3. [check-manifest]
  4. ignore =
  5. .git-blame-ignore-revs
  6. contrib
  7. contrib/*
  8. docs/*
  9. pylint.cfg
  10. tox.ini
  11. [flake8]
  12. # see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
  13. # for error codes. The ones we ignore are:
  14. # W503: line break before binary operator
  15. # W504: line break after binary operator
  16. # E203: whitespace before ':' (which is contrary to pep8?)
  17. # E731: do not assign a lambda expression, use a def
  18. # E501: Line too long (black enforces this for us)
  19. # B00*: Subsection of the bugbear suite (TODO: add in remaining fixes)
  20. ignore=W503,W504,E203,E731,E501,B006,B007,B008
  21. [isort]
  22. line_length = 88
  23. sections=FUTURE,STDLIB,COMPAT,THIRDPARTY,TWISTED,FIRSTPARTY,TESTS,LOCALFOLDER
  24. default_section=THIRDPARTY
  25. known_first_party = synapse
  26. known_tests=tests
  27. known_compat = mock
  28. known_twisted=twisted,OpenSSL
  29. multi_line_output=3
  30. include_trailing_comma=true
  31. combine_as_imports=true