Skip to content

Commit ba8e4bf

Browse files
committed
Add Tools/jit/.ruff.toml
1 parent 34c1850 commit ba8e4bf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
files: ^Tools/build/check_warnings.py
2929
- id: ruff-format
3030
name: Run Ruff (format) on Tools/jit/
31-
args: [--check]
31+
args: [--check, --config=Tools/jit/.ruff.toml]
3232
files: ^Tools/jit/
3333

3434
- repo: https://github.com/pre-commit/pre-commit-hooks

Tools/jit/.ruff.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extend = "../../.ruff.toml" # Inherit the project-wide settings
2+
3+
line-length = 88
4+
5+
[format]
6+
preview = true
7+
docstring-code-format = true

0 commit comments

Comments
 (0)