Skip to content

Commit 6a49583

Browse files
committed
format with ruff in CI
1 parent d7fefc1 commit 6a49583

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/lint-and-test.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Install dependencies
14-
run: |
15-
python -m pip install --upgrade pip
16-
pip install ruff black
13+
- uses: actions/checkout@v3
1714

18-
- name: Lint with Ruff
19-
run: |
20-
ruff check .
15+
- name: "Set up Python"
16+
uses: actions/setup-python@v6
2117

22-
- name: Lint with Black
23-
run: |
24-
black --check .
18+
- name: "install Ruff"
19+
uses: astral-sh/ruff-action@v3
20+
with:
21+
version: ">=0.15,<0.16"
22+
# ToDo: use pyrpoject.toml as version-file
23+
# version-file: "pyproject.toml"
24+
25+
- name: "Check formatting"
26+
run: ruff format --check --diff
2527

2628
test:
2729
strategy:

0 commit comments

Comments
 (0)