Skip to content

tox-dev/tox-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SWUbanner

tox-dev badge pre-commit.ci status badge GH Sponsors badge

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:

requires = [
  "tox-pre-commit",
]

...or in tox.ini:

[tox]
requires =
  tox-pre-commit

Then 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