Skip to content

Commit 67f54e5

Browse files
committed
Try using ruff for Python checks
1 parent 9adcdd8 commit 67f54e5

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

.github/workflows/code-quality.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
1-
name: CodeQuality
1+
name: quality
22
on: [pull_request]
33

44
jobs:
55
build:
66
runs-on: ubuntu-latest
7-
name: CodeQuality
7+
name: Python lint
88
steps:
9-
- uses: actions/checkout@v3
10-
- uses: actions/setup-python@v2
9+
- uses: actions/checkout@v4
10+
11+
- name: lint
12+
uses: astral-sh/ruff-action@v3
13+
with:
14+
src: >-
15+
mygfa
16+
slow_odgi
17+
pollen_data_gen
18+
flatgfa-py
19+
20+
- name: format
21+
uses: astral-sh/ruff-action@v3
1122
with:
12-
python-version: 3.x
13-
- run: pip install --upgrade pip
14-
- run: pip install "black<24" mypy==v1.3
15-
- run: black --diff --check $(git ls-files '*.py')
16-
- run: MYPYPATH=mygfa mypy --no-namespace-packages --disallow-untyped-defs mygfa slow_odgi pollen_data_gen
23+
args: "format --check --diff"
24+
src: >-
25+
mygfa
26+
slow_odgi
27+
pollen_data_gen
28+
flatgfa-py
29+
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v5
32+
- name: types
33+
run: MYPYPATH=mygfa uv tool run mypy --no-namespace-packages --disallow-untyped-defs mygfa slow_odgi pollen_data_gen

0 commit comments

Comments
 (0)