-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch testing to tox + compatibility with qtile 0.14
- Loading branch information
Showing
12 changed files
with
120 additions
and
436 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,8 @@ | ||
[run] | ||
branch = True | ||
source = plasma | ||
|
||
[paths] | ||
source = | ||
plasma | ||
.tox/*/lib/python*/site-packages/plasma |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ __pycache__/ | |
*$py.class | ||
*.egg-info/ | ||
.coverage | ||
.coverage.* | ||
.cache/ | ||
build/ | ||
dist/ | ||
|
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 was deleted.
Oops, something went wrong.
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
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,51 @@ | ||
[tox] | ||
envlist = py35,py36,py37,lint,coverage-report | ||
|
||
[testenv] | ||
deps = | ||
setuptools>=41 | ||
xcffib | ||
coverage | ||
pytest<5.0.0 | ||
pytest-xdist | ||
commands = | ||
coverage run --parallel -m pytest -v {posargs} tests/ | ||
|
||
[testenv:coverage-report] | ||
basepython = python3.7 | ||
skip_install = true | ||
deps = coverage | ||
commands = | ||
coverage combine | ||
coverage report | ||
|
||
[testenv:lint] | ||
deps = | ||
xcffib | ||
flake8 | ||
pylint | ||
commands = | ||
flake8 plasma/ | ||
pylint --rcfile setup.cfg plasma/ | ||
|
||
[testenv:release] | ||
deps = | ||
wheel | ||
twine | ||
commands = | ||
rm -rf *.egg-info build/ dist/ | ||
python setup.py bdist_wheel sdist | ||
twine upload -r pypi dist/* | ||
rm -rf *.egg-info build/ dist/ | ||
|
||
[pylint] | ||
disable = | ||
missing-docstring, | ||
invalid-name, | ||
unused-argument, | ||
too-few-public-methods, | ||
too-many-public-methods, | ||
protected-access, | ||
no-self-use, | ||
too-many-instance-attributes, | ||
fixme, |