Performs extra checks before or after running
Project description
tox-extra
This tox plugin adds few extra checks like:
- ensure exit code 1 if git reports dirty or untracked files after the run
Usage example:
$ tox -e py
...
ERROR: Git reported dirty status. Git should never report dirty status at the end of testing, regardless if status is passed, failed or aborted.
On branch devel
Your branch is up to date with 'origin/devel'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
some-untracked.txt
nothing added to commit but untracked files present (use "git add" to track)
__________________________________________ summary ___________________________________________
ERROR: py: failed
The goal of this plugin is to help developers be aware about files modified by tests
or untracked files before they commit the code. This plugin also does not take into
consideration the global .gitignore
, something that can make git miss reporting
some untracked files, the goal being to assure that when a new developer clones and
runs the tests they do not endup with an unexpected git status.
If you have any cases where you expect to have git report dirty, please
add --allow-dirty
to the command call to disable this check.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tox_extra-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f4122e1c4ec99f22bc30dcb268aff01f464fe7039939bf102ffb08ab947aa0 |
|
MD5 | dfd55e4766d467f8b56e8a2ef6a47c3b |
|
BLAKE2b-256 | b6924951c4ce3a7f3e9979c0d383bfdbc35c2b001ed0d20d1652aa647f36e55f |