-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (65 loc) · 1.78 KB
/
pyproject.toml
File metadata and controls
78 lines (65 loc) · 1.78 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
# Project metadata
[project]
name = "chipflow-digital-ip"
dynamic = ["version"]
description = "curated collection of Amaranth cores"
authors = [
{name = "Myrtle Shah", email = "gatecat@ds0.me" },
]
readme = {file = "README.md", content-type = "text/markdown"}
license-files = [
"LICENSE*",
"vendor/*/*/LICEN?E*",
]
requires-python = ">=3.12,<3.14"
dependencies = [
"amaranth>=0.5,<0.6",
"chipflow-lib @ git+https://github.com/ChipFlow/chipflow-lib.git",
"amaranth-soc @ git+https://github.com/amaranth-lang/amaranth-soc",
"amaranth-stdio @ git+https://github.com/amaranth-lang/amaranth-stdio",
"minerva @ git+https://github.com/minerva-cpu/minerva",
]
# Build system configuration
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = [
"**/*.py",
"**/*.v",
"**/*.yaml"
]
source-includes = [
"**/drivers/*.{c,h,cpp,hpp}"
]
[tool.pdm.build.wheel-data]
purelib = [
{path = "**/drivers/*", relative-to = "."},
]
# Development workflow configuration
[tool.pyright]
diagnosticMode=false
typeCheckingMode = "off"
reportInvalidTypeForm = false
reportMissingImports = false
reportUnboundVariable = false
[tool.ruff.lint]
select = ['E4', 'E7', 'E9', 'F', 'W291', 'W293']
ignore = ['F403', 'F405', 'F841']
exclude = ["vendor/**"]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
test.cmd = "pytest"
test-cov.cmd = "pytest --cov=chipflow-digital-ip cov-report=term"
test-cov-html.cmd = "pytest --cov=chipflow-digital-ip --cov-report=html"
test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build"
lint.composite = ["./tools/license_check.sh", "ruff check"]
doc.cmd = "sphinx-build docs/ docs/_build/"
[dependency-groups]
dev = [
"ruff>=0.9.2",
"pytest>=7.2.0",
"pytest-cov>=0.6",
"sphinx>=7.0",
]