Skip to content

Commit b63dc8a

Browse files
brettcannonhugovk
andauthored
Refactor Platforms/WASI/__main__.py for lazy importing and future new subcommands (#145404)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent ae208d5 commit b63dc8a

File tree

4 files changed

+462
-424
lines changed

4 files changed

+462
-424
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ repos:
1414
name: Run Ruff (lint) on Lib/test/
1515
args: [--exit-non-zero-on-fix]
1616
files: ^Lib/test/
17+
- id: ruff-check
18+
name: Run Ruff (lint) on Platforms/WASI/
19+
args: [--exit-non-zero-on-fix, --config=Platforms/WASI/.ruff.toml]
20+
files: ^Platforms/WASI/
1721
- id: ruff-check
1822
name: Run Ruff (lint) on Tools/build/
1923
args: [--exit-non-zero-on-fix, --config=Tools/build/.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)