Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0042e7a

Browse files
author
Liora Milbaum
committed
refactor: pre-commit trigger from tox
1 parentdd04e8e commit0042e7a

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

‎.github/workflows/pre_commit.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333
-uses:actions/setup-python@v4.3.0
3434
with:
3535
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
36+
-name:install tox
37+
run:pip install tox==3.26.0
38+
-name:pre-commit
39+
run:tox -e pre-commit

‎requirements-lint.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
argcomplete==2.0.0
2+
astroid==2.12.11
23
black==22.10.0
34
commitizen==2.35.0
45
flake8==5.0.4

‎tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minversion = 1.6
33
skipsdist = True
44
skip_missing_interpreters = True
5-
envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint
5+
envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint,pre-commit
66

77
[testenv]
88
passenv =
@@ -123,3 +123,8 @@ commands =
123123
[testenv:smoke]
124124
deps = -r{toxinidir}/requirements-test.txt
125125
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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp