-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These changes aim to manage tests by using tox. tox provide a command line driven CI frontend and development task automation tool. The benefits to us tox are: - manage several task automatically (see the examples list below) - run tests and tasks in dedicated and isolated virtual environments - standardize the way users contribute to our projects by introducing dedicated commands - ensure that execution would be reproducible and standardized between environments (local, CI, etc...) It could allow us to define several tasks to run which could help us to improve the project quality and stability by introducing specific and reproductible tasks like: - test execution - linters execution - doc generation - release notes generation - etc These changes drop the tests from the packaging, in other words pytest is no longer needed to build our packages, it's only installed and used for testing and during development lifecycle. tox is a mainstream project used widely in by python community it could help us to standardize the way we tests and we develop on kinoml. Also these changes could help us to reduce the cost to contribute to this project by providing mainstream features.
- Loading branch information
Showing
8 changed files
with
47 additions
and
19 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
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,28 @@ | ||
[tox] | ||
minversion = 3.2.0 | ||
envlist = py36,py37 | ||
ignore_basepython_conflict = True | ||
|
||
[testenv] | ||
basepython = python3 | ||
usedevelop = True | ||
deps = nose | ||
pytest | ||
pytest-cov | ||
commands = nosetests | ||
|
||
[testenv:pep8] | ||
basepython = python3.6 | ||
deps = flake8 | ||
flake8-import-order | ||
flake8-blind-except | ||
flake8-builtins | ||
flake8-docstrings | ||
flake8-rst-docstrings | ||
flake8-logging-format | ||
commands = flake8 | ||
|
||
[flake8] | ||
exclude = .tox,.eggs | ||
show-source = true | ||
ignore = D100,D101,D102,D103,D104 |