Performs extra checks before or after running
Project description
tox-extra
This tox plugin adds a few extra checks like:
Checks Git Dirty Status
It ensures 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 of 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.
Checks system dependencies using bindep
If a bindep.txt config file is found, tox will run bindep [profiles] to
check if dependencies, including test ones, are present. There is no need to
install bindep your self.
This plugin will add the following list of bindep profiles:
testis always added as tox itself is a test tool- exact tox env name
- tox env name itself split by `-'
pythonX.YandpyXYbased on which python current tox env will use
This should allow developers to modify their bindep.txt file to include
system dependencies specific to a single tox environment if they wish.
To disable bindep feature, you can define TOX_EXTRA_BINDEP=0 in your
environment.
Improves colored output on CI
Multiple tools, including tox and pre-commit fail to property use coloring when run in a CI evironment like Github Actions. This plugin will inject additional environment variables in order to ensure that the tool output remains colored.
It should be noted that this happens only if these variables are not already defined by the user. This feature should reduce the need of adding extra environment variables to your pipelines.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tox_extra-2.2.0.tar.gz.
File metadata
- Download URL: tox_extra-2.2.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38966d94d11965658df74b78d1aafc3abff6b155a41e51577a479babc1777a78
|
|
| MD5 |
fc63e0d27d9136a69d1f296690b446dc
|
|
| BLAKE2b-256 |
fefa2436ebe93ce6f25247d0e25e77c3f7af6eb9e18b700d3e76b111bc12b65a
|
Provenance
The following attestation bundles were made for tox_extra-2.2.0.tar.gz:
Publisher:
tox.yml on tox-dev/tox-extra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tox_extra-2.2.0.tar.gz -
Subject digest:
38966d94d11965658df74b78d1aafc3abff6b155a41e51577a479babc1777a78 - Sigstore transparency entry: 249677874
- Sigstore integration time:
-
Permalink:
tox-dev/tox-extra@1541ce1c8881e60630f686757ae060e19220d51c -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/tox-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tox.yml@1541ce1c8881e60630f686757ae060e19220d51c -
Trigger Event:
release
-
Statement type:
File details
Details for the file tox_extra-2.2.0-py3-none-any.whl.
File metadata
- Download URL: tox_extra-2.2.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba3745c2d4d6d3efa2e49d9138e304af1ac261907e13cbaf987ec73bdad11a46
|
|
| MD5 |
471239ae0c4b1e8650d284eb84d49c9d
|
|
| BLAKE2b-256 |
a53092cba6121b67b8c0c702f1d8873312fe6dbbb223ef9e00d1e0acb48cbbc5
|
Provenance
The following attestation bundles were made for tox_extra-2.2.0-py3-none-any.whl:
Publisher:
tox.yml on tox-dev/tox-extra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tox_extra-2.2.0-py3-none-any.whl -
Subject digest:
ba3745c2d4d6d3efa2e49d9138e304af1ac261907e13cbaf987ec73bdad11a46 - Sigstore transparency entry: 249677883
- Sigstore integration time:
-
Permalink:
tox-dev/tox-extra@1541ce1c8881e60630f686757ae060e19220d51c -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/tox-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tox.yml@1541ce1c8881e60630f686757ae060e19220d51c -
Trigger Event:
release
-
Statement type: