setup.cfg 899 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. max-line-length = 90
  16. # see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
  17. # for error codes. The ones we ignore are:
  18. # W503: line break before binary operator
  19. # W504: line break after binary operator
  20. # E203: whitespace before ':' (which is contrary to pep8?)
  21. # E731: do not assign a lambda expression, use a def
  22. ignore=W503,W504,E203,E731
  23. [isort]
  24. line_length = 89
  25. not_skip = __init__.py
  26. sections=FUTURE,STDLIB,COMPAT,THIRDPARTY,TWISTED,FIRSTPARTY,TESTS,LOCALFOLDER
  27. default_section=THIRDPARTY
  28. known_first_party = synapse
  29. known_tests=tests
  30. known_compat = mock,six
  31. known_twisted=twisted,OpenSSL
  32. multi_line_output=3
  33. include_trailing_comma=true
  34. combine_as_imports=true