Skip to content

Commit 908ea34

Browse files
committed
👷 Lint on CI
1 parent 1bc988f commit 908ea34

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ jobs:
2020
run: tox
2121
env:
2222
TOXENV: flake8
23+
- name: Run pre-commit 💅
24+
run: tox
25+
env:
26+
TOXENV: pre-commit

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ commands = {posargs:py.test --cov=graphene_django graphene_django examples}
4242
basepython = python3.9
4343
deps = -e.[dev]
4444
commands =
45-
black --exclude "/migrations/" graphene_django examples setup.py --check
45+
black graphene_django examples setup.py --check
4646

4747
[testenv:flake8]
4848
basepython = python3.9
4949
deps = -e.[dev]
5050
commands =
5151
flake8 graphene_django examples setup.py
52+
53+
[testenv:pre-commit]
54+
skip_install = true
55+
deps = pre-commit
56+
commands =
57+
pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)