Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ recursive-exclude wasmtime/bindgen/generated *.py *.wasm
include .flake8
include CONTRIBUTING.md
include mypy.ini
include noxfile.py
include pytest.ini
include VERSION

Expand Down
18 changes: 18 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import nox

PYPROJECT = nox.project.load_toml('pyproject.toml')

PYTHONS = [
# Reads versions from Trove classifiers
*nox.project.python_versions(PYPROJECT),
]

# Prefer uv to create virtual environments, fall back to virtualenv.
# Overriden by $NOX_DEFAULT_VENV_BACKEND=... or nox --default-venv-backend ...
# https://nox.thea.codes/en/stable/usage.html#changing-the-sessions-default-backend
nox.options.default_venv_backend = 'uv|virtualenv'

@nox.session(python=PYTHONS, tags=["test"])
def tests(session):
session.install('.[testing]')
session.run('coverage', 'run', '-m', 'pytest')
10 changes: 9 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
[pytest]
addopts = --doctest-modules --mypy --ignore-glob=tests/bindgen/*/app.py
addopts =
--doctest-modules
--ignore-glob=tests/bindgen/*/app.py
--ignore-glob=noxfile.py
--mypy
norecursedirs =
.*
*.egg
build
ci/_custom_build
dist
tests/bindgen/generated/*