Skip to content

Commit 2fcc653

Browse files
committed
add code quality to ci
1 parent 5614aaa commit 2fcc653

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,35 @@ on:
77
branches: [main]
88

99
jobs:
10+
code-quality:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out
14+
uses: actions/checkout@v4
15+
16+
- name: Set up the environment
17+
uses: ./.github/actions/setup-python-env
18+
with:
19+
python-version: "3.13"
20+
21+
- name: Code issue check
22+
run: uv run ruff check .
23+
24+
- name: Code format check
25+
run: uv run ruff format --check .
26+
27+
- name: Dead code check
28+
run: uv run vulture .
29+
30+
- name: Dependency check
31+
run: uv run deptry .
32+
1033
typing:
1134
runs-on: ubuntu-latest
1235
strategy:
1336
matrix:
1437
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1538
fail-fast: false
16-
defaults:
17-
run:
18-
shell: bash
1939
steps:
2040
- name: Check out
2141
uses: actions/checkout@v4
@@ -35,9 +55,6 @@ jobs:
3555
matrix:
3656
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3757
fail-fast: false
38-
defaults:
39-
run:
40-
shell: bash
4158
steps:
4259
- name: Check out
4360
uses: actions/checkout@v4

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ extend-select = ["I"]
3030
# https://github.com/jendrikseipp/vulture?tab=readme-ov-file#configuration
3131
[tool.vulture]
3232
min_confidence = 100
33-
paths = ["src"]
33+
paths = ["src/**", "utests"]
34+
exclude = [".venv", ".tox"]
3435

3536
# https://deptry.com/usage/#configuration
3637
[tool.deptry.per_rule_ignores]

0 commit comments

Comments
 (0)