setup.cfg 930 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. 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
  31. known_twisted=twisted,OpenSSL
  32. multi_line_output=3
  33. include_trailing_comma=true
  34. combine_as_imports=true