File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Code Quality Checks
2+
13on :
24 push :
35 paths :
46 - ' scrapegraphai/**'
57 - ' .github/workflows/pylint.yml'
68
79jobs :
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}')
2338 exit 1
2439 else
2540 echo "Pylint score is acceptable."
26- fi
41+ fi
You can’t perform that action at this time.
0 commit comments