-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ken Kundert
authored and
Ken Kundert
committed
Aug 5, 2024
1 parent
a1446ff
commit ac406a1
Showing
4 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,29 @@ | ||
[tox] | ||
envlist = lint, pytest, mypy | ||
envlist = test, types, lint | ||
isolated_build = True | ||
|
||
[testenv:lint] | ||
[testenv:test] | ||
deps = | ||
setuptools | ||
ruff | ||
commands = ruff check | ||
|
||
# Test environment | ||
[testenv] | ||
deps = | ||
nestedtext | ||
pytest | ||
pytest-cov | ||
parametrize-from-file | ||
shlib | ||
voluptuous | ||
|
||
[testenv:pytest] | ||
commands = py.test -vv --cov {posargs} --cov-branch --cov-report term | ||
|
||
[testenv:mypy] | ||
description = Run mypy | ||
[testenv:types] | ||
deps = | ||
setuptools | ||
mypy | ||
quantiphy | ||
{[testenv]deps} | ||
commands = | ||
mypy \ | ||
--install-types \ | ||
--non-interactive \ | ||
--disable-error-code import \ | ||
{toxinidir}/emborg | ||
mypy --install-types --non-interactive --disable-error-code import {toxinidir}/emborg | ||
|
||
[testenv:lint] | ||
deps = | ||
setuptools | ||
ruff | ||
commands = ruff check | ||
|