Skip to content

Commit

Permalink
Use ruff to ensure formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Oct 21, 2023
1 parent e746a50 commit 4acd838
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ jobs:
clang-format-version: 15
check-path: bindings/c

- name: black --check
uses: psf/black@stable
- name: ruff format
uses: chartboost/ruff-action@v1
with:
args: format --check

- name: ruff check
uses: chartboost/ruff-action@v1

test:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ macos-deployment-target = "10.12"
[tool.maturin.target."aarch64-apple-darwin"]
macos-deployment-target = "11.0"

[tool.black]
include = 'bindings/python/.*\.py'
[tool.ruff]
include = ['bindings/python/*.py']

[project]
name = "accesskit"
Expand Down

0 comments on commit 4acd838

Please sign in to comment.