-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6b435e
commit 188f50a
Showing
1 changed file
with
11 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
[MESSAGES CONTROL] | ||
# Disable certain warnings and errors | ||
disable= | ||
missing-docstring, # Missing docstrings | ||
invalid-name, # Variable names not in snake_case | ||
too-many-arguments, # Exceeding argument limits | ||
too-many-locals, # Exceeding local variable limits | ||
too-many-branches, # Complex functions | ||
too-many-lines, # Exceeding file line limit | ||
import-error, # Ignored unresolved imports | ||
no-name-in-module, # Missing module names | ||
broad-exception-raised, # Avoid broad exceptions | ||
redefined-outer-name, # Outer variable shadowing | ||
no-else-return, # Remove unnecessary else | ||
unused-import, # Unused imports | ||
|
||
[FORMAT] | ||
# Set the maximum line length | ||
max-line-length=120 | ||
|
||
[DESIGN] | ||
# Adjust thresholds for warnings | ||
max-args=10 | ||
max-locals=30 | ||
max-branches=20 | ||
max-lines=1500 | ||
max-statements=100 | ||
|
||
[LOGGING] | ||
# Disable logging format errors | ||
logging-format-style=old | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = .venv, _pycache_, migrations, build, dist | ||
ignore = | ||
F401 | ||
F841 | ||
W293 | ||
E501 | ||
E722 | ||
W503 | ||
F811 |