Skip to content

Commit 4bc48d0

Browse files
committed
Make lint also typecheck
1 parent 8a21aa3 commit 4bc48d0

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

pdm.lock

Lines changed: 28 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ test.cmd = "pytest"
7474
test-cov.cmd = "pytest --cov=my_design --cov-report=term"
7575
test-cov-html.cmd = "pytest --cov=my_design --cov-report=html"
7676
# test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build"
77-
lint.cmd = "ruff check"
77+
lint.composite = [ "ruff check {args}", "pyright chipflow_lib"]
7878
# docs.cmd = "sphinx-build docs/ docs/_build/ -W --keep-going"
7979

8080

@@ -84,4 +84,5 @@ dev = [
8484
"ruff>=0.9.2",
8585
"pytest>=7.2.0",
8686
"pytest-cov>=0.6",
87+
"pyright>=1.1.405",
8788
]

0 commit comments

Comments
 (0)