Skip to content

Commit

Permalink
Add code quality workflow in app
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 3, 2024
1 parent 0ab2c15 commit c6b435e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 4: Run Autopep8 Fix
# Step 4: Run Autopep8 Fix for app.py
- name: Fix with Autopep8
run: python -m autopep8 --in-place --recursive --verbose scripts/ backend/
run: python -m autopep8 --in-place --verbose app.py

# Step 5: Run Pylint
# Step 5: Run Pylint for app.py
- name: Run Pylint
run: python -m pylint scripts/ backend/ --rcfile=.pylintrc || true
run: python -m pylint app.py --rcfile=.pylintrc || true

# Step 6: Run Flake8
# Step 6: Run Flake8 for app.py
- name: Run Flake8
run: python -m flake8 scripts/ backend/
run: python -m flake8 --config=.flake8 app.py

# Step 7: Run Black Check
# Step 7: Run Black Check for app.py
- name: Run Black Check
run: python -m black --check scripts/ backend/
run: python -m black --check app.py

# Step 8: Run Isort Check
# Step 8: Run Isort Check for app.py
- name: Run Isort Check
run: python -m isort --check-only --verbose scripts/ backend/
run: python -m isort --check-only --verbose app.py

0 comments on commit c6b435e

Please sign in to comment.