Skip to content

Commit 82a49d1

Browse files
Add ruff lint job to CI
Add a lint job to the tests workflow running ruff check and ruff format --check on every push and pull request. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2d0893f commit 82a49d1

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ on:
66
pull_request:
77

88
jobs:
9+
lint:
10+
name: Lint and format
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v5
17+
18+
- name: Ruff lint
19+
run: uv run --extra dev ruff check
20+
21+
- name: Ruff format
22+
run: uv run --extra dev ruff format --check
23+
924
pytest:
1025
name: Test suite
1126
runs-on: ubuntu-latest

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ uv run --extra docs --extra pandas --extra polars \
3333
sphinx-build -b doctest docs/source docs/_build/doctest
3434
```
3535

36-
CI runs in two workflows: `.github/workflows/tests.yml` (pytest, with the
36+
CI runs in two workflows: `.github/workflows/tests.yml` (a `lint` job running
37+
`ruff check` + `ruff format --check`, and a `pytest` job with the
3738
pandas/polars/db/web/bibliometrics extras so nothing is skipped) and
3839
`.github/workflows/docs.yml` (the doctests above).
3940

0 commit comments

Comments
 (0)