Skip to content

Commit 522529e

Browse files
committed
Use ruff to ensure formatting and linting
1 parent f4101ba commit 522529e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ jobs:
2828
clang-format-version: 15
2929
check-path: bindings/c
3030

31-
- name: black --check
32-
uses: psf/black@stable
31+
- name: ruff format
32+
uses: chartboost/ruff-action@v1
33+
with:
34+
args: format --check
35+
36+
- name: ruff check
37+
uses: chartboost/ruff-action@v1
3338

3439
test:
3540
runs-on: ${{ matrix.os }}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ macos-deployment-target = "10.12"
1818
[tool.maturin.target."aarch64-apple-darwin"]
1919
macos-deployment-target = "11.0"
2020

21-
[tool.black]
22-
include = 'bindings/python/.*\.py'
21+
[tool.ruff]
22+
include = ['bindings/python/*.py']
2323

2424
[project]
2525
name = "accesskit"

0 commit comments

Comments
 (0)