Skip to content

Commit 9af8cb5

Browse files
committed
ruff change
1 parent 70d0ffe commit 9af8cb5

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: ci
2-
on: [pull_request]
2+
on:
3+
pull_request:
4+
push:
35

46
permissions:
57
contents: read
@@ -8,15 +10,25 @@ jobs:
810
format_python_code:
911
runs-on: ubuntu-latest
1012
steps:
13+
- name: Check out the repo
1114
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1215
with:
1316
submodules: "recursive"
1417
ref: ${{ github.ref }}
15-
- name: Blacken Python code
16-
uses: jpetrucciani/black-check@master
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
21+
22+
- name: Run Ruff Checks
23+
uses: astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
1724
with:
18-
path: "."
19-
black_flags: "--safe --verbose --diff"
25+
args: "check --select I ."
26+
27+
- name: Run Ruff Format
28+
uses: astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
29+
with:
30+
args: "format --check --diff"
31+
2032
build:
2133
runs-on: ubuntu-latest
2234
if: "!contains(github.event.head_commit.message, '[ci skip]')"

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dev = [
2424
"flake8>=7.0.0,<8",
2525
]
2626

27+
28+
2729
[tool.uv]
2830
default-groups = [
2931
"test",

0 commit comments

Comments
 (0)