Skip to content

Commit 4380afb

Browse files
committed
feat: add codequality workflow
1 parent c5630ce commit 4380afb

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
1+
name: Code Quality Checks
2+
13
on:
24
push:
35
paths:
46
- 'scrapegraphai/**'
57
- '.github/workflows/pylint.yml'
68

79
jobs:
8-
build:
10+
quality:
911
runs-on: ubuntu-latest
1012
steps:
1113
- uses: actions/checkout@v3
14+
1215
- name: Install uv
1316
uses: astral-sh/setup-uv@v3
17+
1418
- name: Install dependencies
1519
run: uv sync --frozen
20+
21+
- name: Run Ruff
22+
run: uv run ruff check scrapegraphai
23+
24+
- name: Run Black
25+
run: uv run black --check scrapegraphai
26+
27+
- name: Run isort
28+
run: uv run isort --check-only scrapegraphai
29+
1630
- name: Analysing the code with pylint
1731
run: uv run poe pylint-ci
32+
1833
- name: Check Pylint score
1934
run: |
2035
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
@@ -23,4 +38,4 @@ jobs:
2338
exit 1
2439
else
2540
echo "Pylint score is acceptable."
26-
fi
41+
fi

0 commit comments

Comments
 (0)