-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Bacher, Dominik
committed
Jul 13, 2023
1 parent
a65c379
commit eb2dcc8
Showing
4 changed files
with
64 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[tox] | ||
envlist = py39, py310, py311, typing, lint, pylint | ||
skip_missing_interpreters = True | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
commands = | ||
pytest --cov xknxproject --cov-report= {posargs} | ||
deps = -rrequirements_testing.txt | ||
package = wheel | ||
wheel_build_env = .pkg | ||
|
||
[testenv:lint] | ||
basepython = python3 | ||
commands = | ||
ruff check {posargs:.} | ||
pre-commit run codespell {posargs: --all-files} | ||
pre-commit run flake8 {posargs: --all-files} | ||
pre-commit run pyupgrade {posargs: --all-files} | ||
pre-commit run black {posargs: --all-files} | ||
pre-commit run isort {posargs: --all-files} | ||
pre-commit run check-json {posargs: --all-files} | ||
pre-commit run trailing-whitespace {posargs: --all-files} | ||
|
||
[testenv:pylint] | ||
basepython = python3 | ||
commands = | ||
pylint xknxproject | ||
|
||
[testenv:typing] | ||
basepython = python3 | ||
commands = | ||
pre-commit run mypy {posargs: --all-files} |
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