2020-07-29 15:19:30 +02:00
|
|
|
# Format Python
|
|
|
|
[tool.black]
|
|
|
|
line-length = 80
|
|
|
|
target-version = ['py35', 'py36', 'py37', 'py38']
|
|
|
|
include = '(\.pyi?$|\.spec$)'
|
|
|
|
exclude = '''
|
|
|
|
(
|
|
|
|
/(
|
|
|
|
\.eggs
|
|
|
|
| \.git
|
|
|
|
| \.hg
|
|
|
|
| \.mypy_cache
|
|
|
|
| \.tox
|
|
|
|
| \.venv
|
|
|
|
| _build
|
|
|
|
| buck-out
|
|
|
|
| build
|
|
|
|
| dist
|
|
|
|
)/
|
|
|
|
| buildozer\.spec
|
|
|
|
)
|
|
|
|
'''
|
|
|
|
|
|
|
|
# Sort imports
|
|
|
|
# Settings to fit Black formatting
|
|
|
|
# Taken from https://github.com/timothycrosley/isort/issues/694
|
|
|
|
[tool.isort]
|
|
|
|
line_length = 80
|
|
|
|
include_trailing_comma = true
|
|
|
|
multi_line_output = 3
|
2020-12-24 19:16:25 +01:00
|
|
|
use_parentheses = true
|
2020-07-29 15:19:30 +02:00
|
|
|
force_grid_wrap = 0
|
|
|
|
ensure_newline_before_comments = true
|