Skip to content

Commit 97723a0

Browse files
committed
Add 'ruff check' to pre-commit hooks and hygiene CI.
1 parent a21fddd commit 97723a0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/hygiene.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
pre-commit run check-added-large-files --all-files
7272
pre-commit run check-executables-have-shebangs --all-files
7373
pre-commit run check-shebang-scripts-are-executable --all-files
74+
pre-commit run ruff-check --all-files
7475
7576
- name: Run whole-repo REUSE lint
7677
run: reuse lint

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,9 @@ repos:
9797
- id: check-shebang-scripts-are-executable
9898
files: ^ML-Frameworks/pytorch-aarch64/
9999
stages: [ pre-commit ]
100+
101+
- repo: https://github.com/astral-sh/ruff-pre-commit
102+
rev: v0.15.15
103+
hooks:
104+
- id: ruff-check
105+
stages: [ pre-commit ]

0 commit comments

Comments
 (0)