Skip to content

Commit d5779b8

Browse files
committed
Ensure Ruff is same Version
between pre-commit and GH action
1 parent 0985cbc commit d5779b8

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,19 @@ jobs:
1414
name: Check
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v5
1719
- name: Setup Python 3.13
1820
uses: actions/setup-python@v5
1921
with:
2022
python-version: "3.13"
2123
- uses: astral-sh/setup-uv@v7
22-
- name: Checkout
23-
uses: actions/checkout@v5
2424
- name: Install requirements
2525
run: |
2626
uv lock --check
2727
uv sync
28-
- name: Run Ruff as isort
29-
run: uv run ruff check --select I,RUF022 --fix --diff ./pybind11_stubgen
30-
if: ${{ failure() || success() }}
31-
- name: Run Ruff format
32-
run: uv run ruff format --diff ./pybind11_stubgen
33-
if: ${{ failure() || success() }}
34-
- name: Run Ruff
35-
run: |
36-
uv run ruff check --ignore F401,F821 .
37-
if: ${{ failure() || success() }}
28+
- name: Run pre-commit
29+
run: uv run pre-commit run --all-files
3830

3931
build:
4032
name: Build wheel

0 commit comments

Comments
 (0)