-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
ac781d6
commit 5ef407c
Showing
2 changed files
with
20 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
[tox] | ||
env_list = | ||
py{38,39,310,311} | ||
py{36,37,38,39,310} | ||
minversion = 4.11.3 | ||
|
||
[gh-actions] | ||
python = | ||
3.6: py36, flake8 | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
|
||
[testenv] | ||
description = run the tests with pytest | ||
deps == -rrequirements.txt | ||
description = run the tests with unittest | ||
deps = -rrequirements.txt | ||
commands = | ||
python -m unittest | ||
|
||
[testenv:lint] | ||
description = run linters | ||
skip_install = true | ||
deps = | ||
flake8==6.1.0 | ||
commands = flake8 {posargs:.} | ||
deps = flake8==6.1.0 | ||
commands = | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |