A tox plugin providing a pre-commit environment.
Add tox-pre-commit to your project's tox requirements -- either
in tox.toml:
requires = [
"tox-pre-commit",
]...or in tox.ini:
[tox]
requires =
tox-pre-commitThen invoke the pre-commit env that the plugin exposes:
$ tox run -q -e pre-commit
$ tox run -q -e pre-commit -- ruff --all-files # narrow with posargs
$ SKIP=mypy,ruff tox run -q -e pre-commit # skip specific hooks