Resolve linter contradictions: consolidate config, fix isort first-party, pylint 10/10
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/1e4a1f06-55b9-4040-853e-6aaf9ee574c8 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -31,59 +31,3 @@ skip_covered = False
|
||||
|
||||
[coverage:html]
|
||||
directory = htmlcov
|
||||
|
||||
[flake8]
|
||||
max-line-length = 100
|
||||
exclude =
|
||||
.git,
|
||||
__pycache__,
|
||||
.venv,
|
||||
venv,
|
||||
build,
|
||||
dist,
|
||||
*.egg-info,
|
||||
migrations
|
||||
extend-ignore = E203, W503, E501
|
||||
per-file-ignores =
|
||||
__init__.py:F401
|
||||
max-complexity = 10
|
||||
|
||||
[mypy]
|
||||
python_version = 3.10
|
||||
warn_return_any = True
|
||||
warn_unused_configs = True
|
||||
disallow_untyped_defs = False
|
||||
disallow_incomplete_defs = False
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_calls = False
|
||||
disallow_any_generics = False
|
||||
ignore_missing_imports = True
|
||||
no_implicit_optional = True
|
||||
warn_redundant_casts = True
|
||||
warn_unused_ignores = True
|
||||
warn_no_return = True
|
||||
strict_optional = True
|
||||
|
||||
[isort]
|
||||
profile = black
|
||||
line_length = 100
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = True
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = True
|
||||
ensure_newline_before_comments = True
|
||||
skip = venv,.venv,migrations
|
||||
|
||||
[pylint]
|
||||
max-line-length = 100
|
||||
disable =
|
||||
C0111, # missing-docstring
|
||||
C0103, # invalid-name
|
||||
R0903, # too-few-public-methods
|
||||
R0913, # too-many-arguments
|
||||
W0212, # protected-access
|
||||
good-names = i,j,k,ex,_,id,db
|
||||
|
||||
[bandit]
|
||||
exclude_dirs = /tests/,/venv/,.venv/
|
||||
skips = B101,B601
|
||||
|
||||
Reference in New Issue
Block a user