Skip to content

Commit

Permalink
Add code quality workflow in flask
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 3, 2024
1 parent c6b435e commit 188f50a
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions .flake8
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

0 comments on commit 188f50a

Please sign in to comment.