-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (89 loc) · 2.89 KB
/
pyproject.toml
File metadata and controls
102 lines (89 loc) · 2.89 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pycircuit-hisi"
version = "0.1.0"
description = "A Python-based hardware description framework that compiles Python to RTL through MLIR"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "LinxISA Contributors", email = "contact@linxisa.org" }
]
requires-python = ">=3.10"
keywords = ["hardware", "rtl", "verilog", "mlir", "hdl", "fpga", "asic"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Code Generators",
"Topic :: Electronic Design Automation (EDA)",
]
dependencies = [
"click>=8.0.0",
"pyyaml>=6.0",
]
[project.urls]
Homepage = "https://github.com/LinxISA/pyCircuit"
Repository = "https://github.com/LinxISA/pyCircuit"
Issues = "https://github.com/LinxISA/pyCircuit/issues"
Releases = "https://github.com/LinxISA/pyCircuit/releases"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"pre-commit>=3.7.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mdx-gh-links>=0.2.0",
]
[project.scripts]
pycircuit = "pycircuit.cli:main"
[tool.setuptools.packages.find]
where = ["compiler/frontend"]
[tool.setuptools.package-data]
pycircuit = ["**/*.py", "**/*.md"]
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312", "py313"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "T20"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"compiler/frontend/pycircuit/__init__.py" = ["A004"]
"compiler/frontend/pycircuit/cli.py" = ["A004"]
"compiler/frontend/pycircuit/jit.py" = ["A001", "B009", "B905", "I001", "N818", "UP035", "UP037", "UP038"]
"compiler/frontend/pycircuit/v5.py" = ["B010", "I001", "N801", "N816", "UP007", "UP037", "UP038"]
"designs/examples/digital_filter/digital_filter.py" = ["N803", "N806"]
"designs/examples/fm16/npu_node.py" = ["N803", "N806"]
"designs/examples/fm16/sw5809s.py" = ["N803", "N806"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
markers = [
"unit: fast Python-only tests",
"system: end-to-end smoke tests that require pycc and simulation tools",
]