Skip to content

Commit

Permalink
test15
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 5, 2024
1 parent f22ed43 commit c02c548
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Step 3: Install dependencies
- name: Install dependencies
# Step 3: Run all code quality checks
- name: Run Code Quality Checks
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 4: Fix imports with Isort
- name: Fix with Isort
run: python -m isort --verbose .

# Step 5: Format code with Black
- name: Run Black
run: python -m black --verbose .

# Step 6: Run Flake8 for linting
- name: Run Flake8
run: python -m flake8 --config=.flake8 --verbose . || true

# Step 7: Run Pylint for static analysis
- name: Run Pylint
run: python -m pylint --rcfile=.pylintrc --verbose . || true
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 . || true
echo "Running Pylint..."
python -m pylint --rcfile=.pylintrc --verbose . || true
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ uvicorn==0.24.0
aiohttp==3.10.5
gunicorn==20.1.0
pydantic-settings==2.2.1

# Development Tools
pylint==2.17.5
autopep8==2.0.2
Expand All @@ -18,4 +19,4 @@ isort==5.12.0
flake8==6.0.0
pyment==0.3.3
charset-normalizer==3.3.0
pycodestyle==2.10.0
pycodestyle==2.10.0

0 comments on commit c02c548

Please sign in to comment.