Detox jar
Command line automation tool in pure Python
How to use
- Describe jobs as tables/dictionaries in a config file called 'detox' (choose between .toml, .yaml or .json format).
(Put the config inside the root directory of your project)
# detox.toml
[test]
description = "test project"
dependencies = ["pytest", "pytest-cov"]
commands = "pytest -vv --disable-warnings -s --cache-clear"
# detox.yaml
test:
description: test project
dependencies:
- pytest
- pytest-cov
commands:
- pytest -vv --disable-warnings -s --cache-clear
- description and dependencies could be optional but not commands
# detox.toml
[no-deps]
commands = "echo 'Hello world'"
(in json)
"no-deps": {
"commands": "echo 'Hello world'"
}
- dependencies and commands could be strings or (in case of more than one) a list of strings
# detox.toml
commands = ["ruff check --fix", "ruff format --line-length=100 ."]
# detox.yaml
commands:
- ruff check --fix
- ruff format --line-length=100 .
- You could provide a [run] table inside the config file with a 'suite' - list of selected jobs to run
[run]
suite = ["lint", "format", "test"]
"run": {
"suite": [
"lint",
"format",
"test",
"no-deps"
]
}
- Run the tool in the terminal with a simple 'detox' command
$ detox
(logs omitted...)
$ All jobs succeeded! ['lint', 'format', 'test']
Detoxing took: 14.088007061000098
- In case of failing jobs you get general stats
(logs omitted...)
$ Unsuccessful detoxing took: 13.532951637999759
Failed jobs: ['format']
Successful jobs: ['lint', 'test']
or
$ Unsuccessful detoxing took: 8.48367640699962
Failed jobs: ['format']
Successful jobs: ['lint']
Skipped jobs: ['test']
- You could run specific jobs in the command line
$ detox -j lint
or a list of jobs
$ detox -j lint format
NB: If there is a 'run' table in the config file the jobs specified in the command line take precedence
Metadata
Release files for detox-jar 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| detox_jar-1.1.0.tar.gz | 6.0 kB | Without provenance | Details for detox_jar-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| detox_jar-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for detox_jar-1.1.0-py3-none-any.whl |
Total release size: 13.2 kB
Release files / detox_jar-1.1.0.tar.gz
| Download URL | detox_jar-1.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9682fcb96b620f1ac16eddeabc2c3b9403348d9720c5ded7aaf66a8e53007211
|
|
BLAKE2b-256 checksum How to use checksums |
06e6c9c4a82531e8b9908319f78125b441c6ee3187c613d1b82880f531c905a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / detox_jar-1.1.0-py3-none-any.whl
| Download URL | detox_jar-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0df16b23d4efa2cb593705960ecefa8d645f633291bcf257d11ad3f131fd9ca3
|
|
BLAKE2b-256 checksum How to use checksums |
058658c52d8ad67f98a645a95f617fff26b0fb5899cb97dbb260c4529d8d36a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for detox-jar 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.