build(basket): add linter config file
Parent
f0ef247eb4
révision
d2988f8af2
|
@ -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
|
|
@ -0,0 +1,9 @@
|
|||
[tool.black]
|
||||
line-length = 79
|
||||
skip-string-normalization = true
|
||||
exclude = '''
|
||||
/(
|
||||
\.git
|
||||
| locale
|
||||
)/
|
||||
'''
|
|
@ -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
|
Chargement…
Référencer dans un nouveau ticket