File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Code Quality Checks
2
+
1
3
on :
2
4
push :
3
5
paths :
4
6
- ' scrapegraphai/**'
5
7
- ' .github/workflows/pylint.yml'
6
8
7
9
jobs :
8
- build :
10
+ quality :
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- uses : actions/checkout@v3
14
+
12
15
- name : Install uv
13
16
uses : astral-sh/setup-uv@v3
17
+
14
18
- name : Install dependencies
15
19
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
+
16
30
- name : Analysing the code with pylint
17
31
run : uv run poe pylint-ci
32
+
18
33
- name : Check Pylint score
19
34
run : |
20
35
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
23
38
exit 1
24
39
else
25
40
echo "Pylint score is acceptable."
26
- fi
41
+ fi
You can’t perform that action at this time.
0 commit comments