build(basket): add linter config file

pull/1/head
Vincent Adolphe 2019-02-23 02:56:10 +01:00
Parent f0ef247eb4
révision d2988f8af2
3 fichiers modifiés avec 50 ajouts et 0 suppressions

22
.editorconfig Normal file
Voir le fichier

@ -0,0 +1,22 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{py,rst,ini}]
indent_style = space
indent_size = 4
[*.{html,css,scss,js,json,yml}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

9
pyproject.toml Normal file
Voir le fichier

@ -0,0 +1,9 @@
[tool.black]
line-length = 79
skip-string-normalization = true
exclude = '''
/(
\.git
| locale
)/
'''

19
setup.cfg Normal file
Voir le fichier

@ -0,0 +1,19 @@
[flake8]
exclude =
.git,
.tox,
*/static/*,
build,
dist,
max-line-length = 80
# isort related: https://github.com/timothycrosley/isort/wiki/isort-Settings[
[isort]
line_length = 79
known_first_party = basket
multi_line_output = 3
default_section = THIRDPARTY
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
skip_glob = static
include_trailing_comma = True