Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (70 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (70 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# The repository's Python, as one uv workspace: scripts run with `uv run --frozen` from the
# lock beside this file, on the Python `.python-version` pins. Shared helpers are its members
# (tools/typed-input). The older scripts of harness/ and .github/scripts/ move here when next changed.
[project]
name = "blaze-scripts"
version = "0"
requires-python = ">=3.13"
# blake3: harness/v2's output and tree digests (engine.py, proof.py).
dependencies = ["typed-input", "blake3>=1.0"]
[dependency-groups]
dev = ["ruff>=0.14", "pyright[nodejs]>=1.1.400"]
[tool.uv]
package = false
[tool.uv.workspace]
members = ["tools/typed-input"]
[tool.uv.sources]
typed-input = { workspace = true }
# What ruff and pyright check (blaze.yaml's scripts job): the scripts that are in the workspace.
[tool.ruff]
target-version = "py313"
line-length = 110
include = [
".github/scripts/bench_commit.py",
".github/scripts/checksums.py",
".github/scripts/build_release.py",
".github/scripts/downstream.py",
".github/scripts/downstream_build.py",
".github/scripts/explore_page.py",
"crates/harness/scripts/cef.py",
"harness/counters.py",
"harness/failures.py",
"harness/profile_fixtures.py",
"harness/toolchain_bump.py",
"harness/v2",
"tools/astlog/scan.py",
"tools/cpus.py",
"tools/typed-input",
"tools/v2",
"tools/vendor",
]
# These harnesses arrange their sibling imports after computing HERE. Their runtime
# migration keeps that existing import order; new workspace packages use normal imports.
[tool.ruff.lint.per-file-ignores]
"harness/v2/*.py" = ["E402"]
[tool.pyright]
include = [
".github/scripts/bench_commit.py",
".github/scripts/checksums.py",
".github/scripts/build_release.py",
".github/scripts/downstream.py",
".github/scripts/downstream_build.py",
".github/scripts/explore_page.py",
"crates/harness/scripts/cef.py",
"harness/counters.py",
"harness/failures.py",
"harness/profile_fixtures.py",
"harness/toolchain_bump.py",
"harness/v2",
"tools/astlog/scan.py",
"tools/cpus.py",
"tools/typed-input",
"tools/v2",
"tools/vendor",
]
pythonVersion = "3.13"
typeCheckingMode = "strict"
# harness/v2's scripts import `engine`, `report`, `blaze_cli` and `cases` as siblings off `sys.path`;
# `typed_input` (the workspace member tools/typed-input) resolves from its source as well as from
# the environment `uv sync` installs it in, so a pyright outside that environment finds it too.
extraPaths = ["harness", "harness/v2", "harness/v2/frontend", "tools/typed-input/src"]