-
Notifications
You must be signed in to change notification settings - Fork 288
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (53 loc) · 1.33 KB
/
pyproject.toml
File metadata and controls
61 lines (53 loc) · 1.33 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
# pyproject.toml
# Top-level python project configuration file for riscv-arch-test
# Jordan Carlin [email protected] October 2025
# SPDX-License-Identifier: Apache-2.0
[tool.uv.workspace]
members = ["framework", "generators/testgen", "generators/coverage"]
[dependency-groups]
dev = [
"pre-commit>=4.5.1",
"pyright==1.1.408",
"ruff==0.15.9",
]
###### RUFF CONFIG #####
[tool.ruff]
line-length = 120
extend-exclude = [
"external",
"docs/docs-resources",
"generators/testgen/scripts", # Old scripts that still need to be updated
]
[tool.ruff.lint]
preview = true
# Extra rules to enable beyond the default set
extend-select = [
"ANN", # type annotation rules
"A", # shadow builtins
"SIM", # Simplifications
"TID", # Tidy imports
"PTH", # Use Pathlib
"I", # Import related rules (isort)
"ISC", # Implicit string concatenation
]
ignore = [
"RET504", # Unnecessary assignment to {name} before return statement
"N", # Naming requirements
]
[tool.ty.src]
exclude = [
"external",
"generators/testgen/scripts", # Old scripts that still need to be updated
]
##### PYRIGHT CONFIG #####
[tool.pyright]
exclude = [
"**/__pycache__",
"**/node_modules",
"**/.*",
".venv",
"external",
"docs/docs-resources",
"generators/testgen/scripts", # Old scripts that still need to be updated
]
typeCheckingMode = "standard"