Commit 71b6e79f authored by Hypsug0's avatar Hypsug0
Browse files

add some format/check configs (prettiier/flake8/black)

parent db45adf0
[flake8]
ignore = D203
exclude =
.git,
.venv,
__pycache__,
docs/source/conf.py,
max-complexity = 10
\ No newline at end of file
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
\ No newline at end of file
......@@ -7,7 +7,7 @@ license = "AGPLv3"
[tool.poetry.dependencies]
python = "^3.6"
python = "^3.7"
Django = "^2.2.17"
djangorestframework-gis = "^0.16"
django-crispy-forms = "^1.10.0"
......@@ -34,13 +34,38 @@ black = "^20.8b1"
flake8 = "^3.8.4"
tox = "^3.20.1"
isort = "^5.7.0"
pre-commit = "^2.10.0"
[tool.isort]
line_length = 99
multi_line_output = 3
include_trailing_comma = true
[tool.black]
line-length = 99
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment