Skip to content

Commit

Permalink
Linting-files
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 27, 2024
1 parent 5b103e7 commit 6d7e428
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 45 deletions.
7 changes: 4 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
max-line-length = 120
exclude = .venv, _pycache_, migrations
ignore = E501,F401,F811,F841,E203,E231,W503
max-line-length = 88
extend-ignore = E501
exclude = .venv
ignore = E203, W503
13 changes: 3 additions & 10 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,8 @@ jobs:
python-version: ${{ matrix.python-version }}

# Step 3: Run all code quality checks
- name: Run Code Quality Checks
- name: Pylint
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
echo "Fixing imports with Isort..."
python -m isort --verbose .
echo "Formatting code with Black..."
python -m black --verbose .
echo "Running Flake8..."
python -m flake8 --config=.flake8 --verbose .
echo "Running Pylint..."
python -m pylint --rcfile=.pylintrc --verbose .
python -m flake8 --config=.flake8 --verbose .
24 changes: 0 additions & 24 deletions .pylintrc

This file was deleted.

13 changes: 5 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ aiohttp==3.10.5
gunicorn==20.1.0
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
flake8==7.1.1
black==24.8.0
autoflake==2.3.1
isort==5.13.2

6 changes: 6 additions & 0 deletions test.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

call autoflake .
call black .
call isort .
call flake8 .

0 comments on commit 6d7e428

Please sign in to comment.