mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
28 lines
758 B
TOML
28 lines
758 B
TOML
[project]
|
|
name = "pcb-scripts"
|
|
version = "0.0.0"
|
|
requires-python = ">=3.10"
|
|
dependencies = ["click>=8.5.0"]
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest>=9.1.1", "hypothesis>=6.167.0", "ruff>=0.16.5", "ty>=0.0.75"]
|
|
|
|
[tool.ruff]
|
|
# KiCad embeds Python 3.9; requires-python describes only the dev/test environment.
|
|
target-version = "py39"
|
|
|
|
[tool.ruff.lint]
|
|
# Enforce required-imports (not enabled by default).
|
|
extend-select = ["I002"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
# Defer annotation evaluation so modern type syntax is safe under KiCad's Python.
|
|
required-imports = ["from __future__ import annotations"]
|
|
|
|
[tool.ty.src]
|
|
exclude = ["**/tests/"]
|
|
|
|
[tool.ty.rules]
|
|
# Disable unresolved-import: ty can't resolve relative imports in non-package scripts
|
|
unresolved-import = "ignore"
|