forked from atopile/atopile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
278 lines (253 loc) · 7.38 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
[build-system]
requires = [
"hatchling",
"scikit-build-core==0.9.2",
"nanobind>=2.2,<3.0",
"hatch-vcs",
]
build-backend = "hatchling.build"
[project]
name = "atopile"
description = "A toolchain bringing the best of software development to the real-world!"
readme = "README.md"
requires-python = ">=3.13,<3.14"
dynamic = ["version"]
license = { file = "LICENSE" }
authors = [
{ name = "Matthew Wildoer", email = "[email protected]" },
{ name = "Ioannis Papamanoglou", email = "[email protected]" },
{ name = "Narayan Powderly", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=2.2.0,<3.0.0",
"matplotlib>=3.7.1,<4.0.0",
"sexpdata>=1.0.2,<2.0.0",
"black>=24.4.2,<24.11.0",
"typing-extensions>=4.6.3,<5.0.0",
"atopile-easyeda2kicad>=0.9.0",
"shapely>=2.0.1,<3.0.0",
"freetype-py>=2.4,<2.6",
"kicadcliwrapper>=1.0.0,<2.0.0",
"dataclasses-json>=0.6.7,<0.7.0",
"patool>=2.3.0,<2.4.0",
"requests>=2.32.3,<3.0.0",
"rich>=13.7.1,<14.0.0",
"typer>=0.12,<0.16",
"ruff>=0.8.2,<0.9.0",
"pint>=0.24.4,<1.0.0",
"deprecated~=1.2.14",
"more-itertools>=10.4,<10.7",
"psutil>=6.0.0,<7.0.0",
"antlr4-python3-runtime==4.13.2", # Strict version because the generated (but versioned) files must match
"attrs>=23.2.0",
"case-converter>=1.1.0",
"fake-useragent>=1.4.0",
"gitpython>=3.1.41",
"jinja2>=3.1.3",
"natsort>=8.4.0",
"packaging>=23.2",
"pygls>=1.3.0",
"ruamel.yaml>=0.18.5",
"schema>=0.7.5",
"semver>=3.0.2",
"urllib3>=2.2.1",
"questionary>=2.0.1",
"pydantic-settings>=2.7.1",
"hypothesis>=6.124.7",
"cookiecutter>=2.6.0",
]
[project.urls]
Homepage = "https://github.com/atopile/atopile"
"Bug Tracker" = "https://github.com/atopile/atopile/issues"
[dependency-groups]
dev = [
"antlr4-tools>=0.2.1",
"coverage>=7.6.8",
"dash_cytoscape~=1.0.2",
"dash~=2.18.1",
"debugpy>=1.8.11",
"gprof2dot~=2024.6.6",
"mkdocs-material>=9.5.49",
"mkdocs>=1.6.1",
"nanobind>=2.2,<3.0",
"pre-commit>=2.20,<4.0",
"pyinstrument~=4.7.1",
"pytest-datafiles>=3.0.0",
"pytest-html>=4.1.1",
"pytest-xdist~=3.6.1",
"pytest>=7.1.3,<9.0.0",
"viztracer>=1.0.0,<2.0.0",
"pytest-benchmark>=5.1.0,<6.0.0",
"pytest-timeout>=2.3.1",
"pytest-history @ git+https://github.com/atopile/pytest-history.git",
"mkdocstrings[python]>=0.27.0",
"griffe-typingdoc>=0.2.7",
"pathvalidate>=3.2.1",
"mike>=2.1.3",
"hatch>=1.14.0",
"atopile-mkdocs-plugin",
]
[project.scripts]
ato = "atopile.cli.cli:main"
faebryk = "faebryk.tools.main:__main__"
[project.entry-points."pygments.lexers"]
atopile_lexer = "atopile.parse_utils:PygmentsLexer"
[tool.hatch]
[tool.hatch.metadata]
allow-direct-references = true
# Add the built viewer to the python package
[tool.hatch.build.targets.wheel]
artifacts = ["**/viewer/dist"]
packages = ["src/faebryk", "src/atopile"]
[tool.hatch.build.targets.wheel.hooks.scikit-build]
experimental = true
cmake.source-dir = "src/faebryk/core/cpp"
[tool.hatch.build.targets.sdist]
artifacts = ["**/viewer/dist"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
# Passed through to setuptools-scm
# See: https://setuptools-scm.readthedocs.io/en/latest/config/
# https://setuptools-scm.readthedocs.io/en/latest/extending/
version_scheme = "only-version"
local_scheme = "no-local-version"
[tool.pytest]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--html=artifacts/test-report.html",
"--self-contained-html",
"--numprocesses=auto",
]
filterwarnings = ["ignore:.*:DeprecationWarning"]
testpaths = ["test"]
log_file_format = "%(asctime)s %(levelname)s %(name)s %(message)s"
# log_file_level = "DEBUG" # <-- you can set this in a PR if you want to debug tests in CI
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"not_in_ci: marks tests that should not be run in CI",
"regression: marks tests that are used for deeper regression testing. May be slow and flaky.",
]
history-url = "https://ynesgbuoxmszjrkzazxz.supabase.co"
# anon key, so safe for public repo
history-key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InluZXNnYnVveG1zempya3phenh6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzQzNzg5NDYsImV4cCI6MjA0OTk1NDk0Nn0.6KxEoSHTgyV4jKnnLAG5-Y9tWfHOzpl0qnA_NPzGUBo"
[tool.ruff]
line-length = 88 # Same as Black.
target-version = "py313"
exclude = [
"src/atopile/parser/AtoLexer.py",
"src/atopile/parser/AtoLexerBase.py",
"src/atopile/parser/AtoParser.py",
"src/atopile/parser/AtoParserBase.py",
"src/atopile/parser/AtoParserListener.py",
"src/atopile/parser/AtoParserVisitor.py",
"docs/",
"sandbox/",
]
[tool.ruff.format]
exclude = ["_F.py"]
[tool.ruff.lint]
# Enable recommended set of rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I001", # isort
#"B", # flake8-bugbear
#"C4", # flake8-comprehensions
#"PL", # Pylint
#"RUF", # Ruff-specific rules
#"UP", # pyupgrade
#"N", # pep8-naming
#"SIM", # flake8-simplify
#"TCH", # flake8-type-checking
#"ARG", # flake8-unused-arguments
#"PTH", # flake8-use-pathlib
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # Pyflakes
"G", # flake8-logging-format
"I", # isort
"N", # pep8-naming
"Q", # flake8-quotes
"S", # flake8-bandit
"T", # flake8-print
"W", # pycodestyle warnings
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"BLE", # flake8-blind-except
"COM", # flake8-commas
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # flake8-executable
"FBT", # flake8-boolean-trap
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLF", # flake8-self
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"YTT", # flake8-2020
]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.black]
line-length = 88
target-version = ['py313']
extend-exclude = "atopile/parser/"
[tool.uv.sources]
atopile-mkdocs-plugin = { path = "tools/atopile_mkdocs_plugin", editable = true }