Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dbchiro
dbchiroweb
Commits
71b6e79f
Commit
71b6e79f
authored
Jan 31, 2021
by
Hypsug0
Browse files
add some format/check configs (prettiier/flake8/black)
parent
db45adf0
Changes
3
Hide whitespace changes
Inline
Side-by-side
.flake8
0 → 100644
View file @
71b6e79f
[flake8]
ignore = D203
exclude =
.git,
.venv,
__pycache__,
docs/source/conf.py,
max-complexity = 10
\ No newline at end of file
.prettierrc
0 → 100644
View file @
71b6e79f
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
\ No newline at end of file
pyproject.toml
View file @
71b6e79f
...
...
@@ -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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment