Skip to content

Commit 0316ccf

Browse files
committed
Tell nox to ignore type checking the examples. Teach Poetry to not package up the pyodide and pyscript dirs.
1 parent 6b723a6 commit 0316ccf

File tree

3 files changed

+6
-46
lines changed

3 files changed

+6
-46
lines changed

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,10 @@ def precommit(session: Session) -> None:
137137
activate_virtualenv_in_precommit_hooks(session)
138138

139139

140-
141140
@session(python=python_versions)
142141
def mypy(session: Session) -> None:
143142
"""Type-check using mypy."""
144-
args = session.posargs or ["src", "tests", "docs/conf.py"]
143+
args = session.posargs or ["--exclude=examples", "src", "tests", "docs/conf.py"]
145144
session.install(".")
146145
session.install(
147146
"mypy",

poetry.lock

Lines changed: 1 addition & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ documentation = "https://psc.readthedocs.io"
1111
classifiers = [
1212
"Development Status :: 1 - Planning",
1313
]
14+
exclude = [
15+
"src/psc/pyodide/",
16+
"src/psc/pyscript/",
17+
]
1418

1519
[tool.poetry.urls]
1620
Changelog = "https://github.com/pauleveritt/psc/releases"

0 commit comments

Comments
 (0)