Skip to content

Commit 20a2755

Browse files
refactor complete
1 parent 9185184 commit 20a2755

File tree

7 files changed

+5
-4
lines changed

7 files changed

+5
-4
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
id: pylint
4848
run: |
4949
echo "Running pylint..."
50-
if pylint src > pylint-output.txt 2>&1; then
50+
if pylint app > pylint-output.txt 2>&1; then
5151
echo "PYLINT_PASSED=true" >> $GITHUB_ENV
5252
echo "No pylint errors found!"
5353
else
@@ -61,7 +61,7 @@ jobs:
6161
id: ruff
6262
run: |
6363
echo "Running ruff check..."
64-
if ruff check . > ruff-output.txt 2>&1; then
64+
if ruff check app > ruff-output.txt 2>&1; then
6565
echo "RUFF_PASSED=true" >> $GITHUB_ENV
6666
echo "No ruff errors found!"
6767
else
@@ -75,14 +75,15 @@ jobs:
7575
id: mypy
7676
run: |
7777
echo "Running mypy..."
78-
if mypy . > mypy-output.txt 2>&1; then
78+
cd app
79+
if mypy . > ../mypy-output.txt 2>&1; then
7980
echo "MYPY_PASSED=true" >> $GITHUB_ENV
8081
echo "No mypy errors found"
8182
else
8283
echo "MYPY_PASSED=false" >> $GITHUB_ENV
8384
echo "Mypy found issues"
8485
fi
85-
cat mypy-output.txt
86+
cat ../mypy-output.txt
8687
continue-on-error: true
8788

8889
- name: Create Lint Summary

backend/app/admin/py.typed

Whitespace-only changes.

backend/app/auth/py.typed

Whitespace-only changes.

backend/app/core/py.typed

Whitespace-only changes.

backend/app/middleware/py.typed

Whitespace-only changes.

backend/app/py.typed

Whitespace-only changes.

backend/app/user/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)