https://github.com/tox-dev/tox-pre-commit
A tox plugin providing a pre-configured pre-commit toxenv.
https://github.com/tox-dev/tox-pre-commit
Last synced: 16 days ago
JSON representation
A tox plugin providing a pre-configured pre-commit toxenv.
- Host: GitHub
- URL: https://github.com/tox-dev/tox-pre-commit
- Owner: tox-dev
- License: other
- Created: 2026-05-01T08:20:51.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-29T21:25:17.000Z (25 days ago)
- Last Synced: 2026-05-29T23:07:21.308Z (25 days ago)
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
[![SWUbanner]][SWUdocs]
[![tox-dev badge]][tox-dev]
[![pre-commit.ci status badge]][pre-commit.ci results page]
[![GH Sponsors badge]][GH Sponsors URL]
[SWUbanner]:
https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg
[SWUdocs]:
https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
[tox-dev]: https://github.com/tox-dev
[tox-dev badge]:
https://img.shields.io/badge/project-yellow?label=tox-dev&labelColor=c3cc39&color=7f833e
[pre-commit.ci status badge]:
https://results.pre-commit.ci/badge/github/tox-dev/tox-pre-commit/main.svg
[pre-commit.ci results page]:
https://results.pre-commit.ci/latest/github/tox-dev/tox-pre-commit/main
[GH Sponsors badge]:
https://img.shields.io/badge/%40webknjaz-transparent?logo=githubsponsors&logoColor=%23EA4AAA&label=Sponsor&color=2a313c
[GH Sponsors URL]:
https://github.com/sponsors/webknjaz
# tox-pre-commit
A tox plugin providing a pre-commit environment.
## Usage
Add `tox-pre-commit` to your project's `tox` requirements -- either
in `tox.toml`:
```toml
requires = [
"tox-pre-commit",
]
```
...or in `tox.ini`:
```ini
[tox]
requires =
tox-pre-commit
```
Then invoke the `pre-commit` env that the plugin exposes:
```console
$ 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
```