From c6b435e2856968c72d16d3f437b3d9e104a009be Mon Sep 17 00:00:00 2001 From: UtkarshMishra-Microsoft Date: Tue, 3 Dec 2024 20:49:32 +0530 Subject: [PATCH] Add code quality workflow in app --- .github/workflows/pylint.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index d881d0c9..b61d20f8 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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 \ No newline at end of file