Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f8a9c4

Browse files
Copilotcrcrpar
andcommitted
Enable Ruff pre-commit hooks in .pre-commit-config.yaml
Co-authored-by: crcrpar <[email protected]>
1 parent 30d715a commit 1f8a9c4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ repos:
66
files: \.(c|h|cpp|hpp|proto|cu|cuh)$
77
exclude: ^(apex/contrib/csrc/multihead_attn/cutlass|apex/contrib/csrc/cudnn-frontend)/
88

9-
# TODO: Enable Ruff
10-
# - repo: https://github.com/astral-sh/ruff-pre-commit
11-
# rev: v0.14.0
12-
# hooks:
13-
# - id: ruff-check
14-
# args: ["--fix"]
15-
# - id: ruff-format
16-
# types_or: [python]
17-
# exclude: "examples"
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.14.0
11+
hooks:
12+
- id: ruff-check
13+
args: ["--fix"]
14+
- id: ruff-format
15+
types_or: [python]
16+
exclude: "examples"

0 commit comments

Comments
 (0)