Skip to main content

Detox jar

Detox jar

Python 3.x PyPI Downloads


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)

Source distribution for detox-jar 1.1.0
File Size Uploaded
detox_jar-1.1.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for detox-jar 1.1.0
File Interpreter ABI Platform
detox_jar-1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page