-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (121 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
138 lines (121 loc) · 3.19 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mlogv32"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"jinja2>=3.1.6",
"lark[interegular]>=1.2.2",
"pydantic>=2.11.5",
"pymsch>=0.0.11",
"pyperclip>=1.9.0",
"pyyaml>=5.2",
"riscof",
"riscv-isac",
"riscv-config>=3.18.3",
"tqdm>=4.67.1",
"typer>=0.15.4",
]
[dependency-groups]
dev = [
"poethepoet>=0.35.0",
"pre-commit",
"ruff>=0.11.12",
]
[tool.uv]
override-dependencies = [
"pyyaml>=6.0.2",
]
[tool.uv.sources]
pymsch = { git = "https://github.com/object-Object/pymsch", rev = "3c413fae16" }
riscof = { git = "https://github.com/riscv/riscof", rev = "9fe3597d75" }
riscv-isac = { git = "https://github.com/riscv-software-src/riscv-isac", rev = "777d2b4762" }
[tool.hatch.build.targets.wheel]
packages = [
"python/src/mlogv32",
]
[tool.poe.tasks]
build = "python -m mlogv32.preprocessor build src/cpu/cpu.yaml"
build-cpu = "python -m mlogv32.preprocessor build src/cpu/cpu.yaml --cpu"
[tool.ruff]
extend-exclude = [
"**/venv",
"**/.*",
"**/node_modules",
"**/__pycache__",
]
[tool.ruff.lint]
extend-select = [
"I", # import sorting
"RUF022", # __all__ sorting
]
extend-ignore = [
# covered by Pyright
"F821", # undefined variable
"F401", # imported but unused
"F841", # unused variable
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pyright]
pythonVersion = "3.12"
pythonPlatform = "All"
extraPaths = [
"python/src",
]
include = [
"python/*",
"riscof/mlogv32",
]
exclude = [
"**/venv",
"**/.*",
"**/node_modules",
"**/__pycache__",
]
typeCheckingMode = "standard"
strictDictionaryInference = true
strictListInference = true
strictSetInference = true
reportAssertAlwaysTrue = "error"
reportConstantRedefinition = "error"
reportDeprecated = "error"
reportFunctionMemberAccess = "error"
reportIncompatibleMethodOverride = "error"
reportIncompatibleVariableOverride = "error"
reportIncompleteStub = "error"
reportInconsistentConstructor = "error"
reportInvalidStringEscapeSequence = "error"
reportInvalidStubStatement = "error"
reportInvalidTypeVarUse = "error"
reportMatchNotExhaustive = "error"
reportMissingParameterType = "error"
reportOverlappingOverload = "error"
reportSelfClsParameterName = "error"
reportTypeCommentUsage = "error"
reportUnknownParameterType = "error"
reportUnnecessaryCast = "error"
reportUnnecessaryContains = "error"
reportUnsupportedDunderAll = "error"
reportUntypedBaseClass = "error"
reportUntypedClassDecorator = "error"
reportUntypedFunctionDecorator = "error"
reportUntypedNamedTuple = "error"
reportWildcardImportFromLibrary = "error"
reportMissingTypeArgument = "warning"
reportPrivateUsage = "warning"
reportUnknownLambdaType = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryIsInstance = "warning"
reportUnusedClass = "warning"
reportUnusedExpression = "warning"
reportUnusedFunction = "warning"
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportUnknownArgumentType = "information"
reportUnknownMemberType = "information"
reportUnknownVariableType = "information"
reportMissingTypeStubs = "none"
reportDuplicateImport = "none"