Skip to content

Commit

Permalink
Add code quality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 3, 2024
1 parent a229a30 commit 9c3e9e0
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[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
Empty file added .github/workflows/pylint.yml
Empty file.
31 changes: 31 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[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
14 changes: 12 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ azure-search-documents==11.4.0b6
azure-storage-blob==12.17.0
python-dotenv==1.0.0
azure-cosmos==4.7.0
quart==0.19.4
quart==0.19.9
uvicorn==0.24.0
aiohttp==3.10.5
gunicorn==20.1.0
pydantic-settings==2.2.1
pydantic-settings==2.2.1

# Development Tools
pylint==2.17.5
autopep8==2.0.2
black==23.9.1
isort==5.12.0
flake8==6.0.0
pyment==0.3.3
charset-normalizer==3.3.0
pycodestyle==2.10.0

0 comments on commit 9c3e9e0

Please sign in to comment.