Skip to content

Commit 4318268

Browse files
lint: use ruff pre commit hook (#1566)
* lint: use ruff pre commit hook * dont install ruff --------- Co-authored-by: Erik Wrede <[email protected]>
1 parent 5b3ed2c commit 4318268

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install ruff tox
19-
- name: Format check using Ruff
20-
run: ruff format --check
18+
pip install tox
2119
- name: Run lint
2220
run: tox
2321
env:

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ repos:
2626
hooks:
2727
- id: ruff
2828
- id: ruff-format
29+
args: [ --check ]

0 commit comments

Comments
 (0)