-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (77 loc) · 2.2 KB
/
pyproject.toml
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
# Package sources
# Project metadata
[project]
name = "chipflow-lib"
dynamic = ["version"]
description = "ChipFlow common tools."
authors = [
{name = "Robert Taylor", email = "[email protected]" },
{name = "Ross Motley", email = "[email protected]" },
{name = "Catherine Zotova", email = "[email protected]" },
]
license = {file = "LICENSE.md"}
requires-python = ">=3.10"
dependencies = [
"amaranth>=0.5,<0.7",
"amaranth-soc @ git+https://github.com/amaranth-lang/amaranth-soc",
"amaranth-boards @ git+https://github.com/amaranth-lang/amaranth-boards",
"yowasp-yosys>=0.41.0.0",
"yowasp-nextpnr-ecp5>=0.7",
"yowasp-runtime",
"tomli>=2.0.1",
"jsonschema>=4.8.0",
"doit>=0.36.0",
"requests>=2.20",
"python-dotenv>=1.0.1",
"pydantic>=2.8",
]
[project.scripts]
chipflow = "chipflow_lib.cli:run"
# Build system configuration
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
# Development workflow configuration
[tool.pyright]
diagnosticMode=false
typeCheckingMode = "off"
reportInvalidTypeForm = false
reportMissingImports = false
reportUnboundVariable = false
[tool.ruff]
include = [
"chipflow_lib/**/*.py",
"tests/**.py",
"chipflow.toml",
"pyproject.toml"
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W291", "W293"]
ignore = ['F403', 'F405']
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
test.cmd = "pytest"
test-cov.cmd = "pytest --cov=chipflow_lib --cov-report=term"
test-cov-html.cmd = "pytest --cov=chipflow_lib --cov-report=html"
test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build"
lint.cmd = "ruff check"
docs.cmd = "sphinx-build docs/ docs/_build/ -W --keep-going"
test-silicon.cmd = "pytest tests/test_silicon_platform.py tests/test_silicon_platform_additional.py tests/test_silicon_platform_amaranth.py tests/test_silicon_platform_build.py tests/test_silicon_platform_port.py --cov=chipflow_lib.platforms.silicon --cov-report=term"
[dependency-groups]
lint = [
"ruff>=0.9.2",
]
test = [
"pytest>=7.2.0",
"pytest-cov>=6.0.0",
]
doc = [
"sphinx-book-theme>=1.1.3",
"sphinx-autoapi>=3.5.0",
"sphinx>=7.3.7",
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]