linting
This commit is contained in:
parent
852d937040
commit
53e0a7c3e4
8
.editorconfig
Normal file
8
.editorconfig
Normal file
|
@ -0,0 +1,8 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace=true
|
||||
insert_final_newline = true
|
6
.flake8
Normal file
6
.flake8
Normal file
|
@ -0,0 +1,6 @@
|
|||
[flake8]
|
||||
ignore = E203,W504,W191,W503
|
||||
exclude = .git
|
||||
max-complexity = 10
|
||||
max-line-length = 108
|
||||
indent-string = ' '
|
4
requirements-dev.txt
Executable file
4
requirements-dev.txt
Executable file
|
@ -0,0 +1,4 @@
|
|||
isort
|
||||
brunette
|
||||
flake8
|
||||
mypy
|
39
setup.cfg
Executable file
39
setup.cfg
Executable file
|
@ -0,0 +1,39 @@
|
|||
[isort]
|
||||
# https://github.com/PyCQA/isort
|
||||
line_length = 120
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
force_alphabetical_sort = false
|
||||
|
||||
[tool:brunette]
|
||||
# https://github.com/odwyersoftware/brunette
|
||||
line-length = 120
|
||||
single-quotes = false
|
||||
|
||||
[flake8]
|
||||
# https://github.com/PyCQA/flake8
|
||||
exclude = .git,__pycache__,.mypy_cache,.vercel
|
||||
max-line-length = 120
|
||||
max-complexity = 15
|
||||
select = B,C,E,F,W,T4,B9
|
||||
# E203: Whitespace before ':'
|
||||
# E266: Too many leading '#' for block comment
|
||||
# E501: Line too long (82 > 79 characters)
|
||||
# E722: Do not use bare except, specify exception instead
|
||||
# W503: Line break occurred before a binary operator
|
||||
# F403: 'from module import *' used; unable to detect undefined names
|
||||
# C901: Function is too complex
|
||||
ignore = E203,E266,E501,E722,W503,F403,C901
|
||||
|
||||
[mypy]
|
||||
# https://github.com/python/mypy
|
||||
ignore_missing_imports = true
|
||||
warn_return_any = false
|
||||
warn_unused_configs = true
|
||||
disallow_untyped_calls = true
|
||||
disallow_untyped_defs = true
|
||||
disallow_incomplete_defs = true
|
||||
[mypy-api.*]
|
||||
ignore_errors = true
|
Loading…
Reference in New Issue
Block a user