setup.cfg 907 B

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