We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb54adf + 6e59c12 commit eec6c02Copy full SHA for eec6c02
2 files changed
.github/workflows/pre_commit.yml
@@ -33,9 +33,7 @@ jobs:
33
- uses: actions/setup-python@v4.3.0
34
with:
35
python-version: "3.10"
36
- - name: Install pre-commit
37
- run: pip install -r requirements-precommit.txt
38
- - name: Run pre-commit install
39
- run: pre-commit install
40
- - name: pre-commit run all-files
41
- run: pre-commit run --all-files
+ - name: install tox
+ run: pip install tox==3.26.0
+ - name: pre-commit
+ run: tox -e pre-commit
tox.ini
@@ -2,7 +2,7 @@
2
minversion = 1.6
3
skipsdist = True
4
skip_missing_interpreters = True
5
-envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint
+envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint,pre-commit
6
7
[testenv]
8
passenv =
@@ -123,3 +123,8 @@ commands =
123
[testenv:smoke]
124
deps = -r{toxinidir}/requirements-test.txt
125
commands = pytest tests/smoke {posargs}
126
+
127
+[testenv:pre-commit]
128
+skip_install = true
129
+deps = -r requirements-precommit.txt
130
+commands = pre-commit run --all-files --show-diff-on-failure
0 commit comments