Skip to content

Commit c5c5160

Browse files
committed
Turn on Ruff linting and formatting
1 parent ce4d5c7 commit c5c5160

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ repos:
1818
name: Run Ruff (lint) on Tools/build/
1919
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
2020
files: ^Tools/build/
21+
- id: ruff-check
22+
name: Run Ruff (lint) on Platforms/WASI/
23+
args: [--exit-non-zero-on-fix, --config=Platforms/WASI/.ruff.toml]
24+
files: ^Platforms/WASI/
2125
- id: ruff-check
2226
name: Run Ruff (lint) on Tools/i18n/
2327
args: [--exit-non-zero-on-fix, --config=Tools/i18n/.ruff.toml]
@@ -42,6 +46,10 @@ repos:
4246
name: Run Ruff (format) on Doc/
4347
args: [--exit-non-zero-on-fix]
4448
files: ^Doc/
49+
- id: ruff-format
50+
name: Run Ruff (format) on Platforms/WASI/
51+
args: [--exit-non-zero-on-fix, --config=Platforms/WASI/.ruff.toml]
52+
files: ^Platforms/WASI/
4553
- id: ruff-format
4654
name: Run Ruff (format) on Tools/build/check_warnings.py
4755
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]

Platforms/WASI/.ruff.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
extend = "../../.ruff.toml" # Inherit the project-wide settings
22

3+
target-version = "py314"
4+
35
[format]
46
preview = true
57
docstring-code-format = true

0 commit comments

Comments
 (0)