Skip to content
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ repos:
name: Run Ruff (lint) on Lib/test/
args: [--exit-non-zero-on-fix]
files: ^Lib/test/
- id: ruff-check
name: Run Ruff (lint) on Platforms/WASI/
args: [--exit-non-zero-on-fix, --config=Platforms/WASI/.ruff.toml]
files: ^Platforms/WASI/
- id: ruff-check
name: Run Ruff (lint) on Tools/build/
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
Expand Down Expand Up @@ -42,6 +46,10 @@ repos:
name: Run Ruff (format) on Doc/
args: [--exit-non-zero-on-fix]
files: ^Doc/
- id: ruff-format
name: Run Ruff (format) on Platforms/WASI/
args: [--exit-non-zero-on-fix, --config=Platforms/WASI/.ruff.toml]
files: ^Platforms/WASI/
- id: ruff-format
name: Run Ruff (format) on Tools/build/check_warnings.py
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
Expand Down
2 changes: 2 additions & 0 deletions Platforms/WASI/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extend = "../../.ruff.toml" # Inherit the project-wide settings

target-version = "py314"

[format]
preview = true
docstring-code-format = true
Expand Down
Loading
Loading