mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-03 03:43:28 +03:00
👷 Lint on CI
This commit is contained in:
parent
1bc988ff7c
commit
908ea34f55
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
@ -20,3 +20,7 @@ jobs:
|
||||||
run: tox
|
run: tox
|
||||||
env:
|
env:
|
||||||
TOXENV: flake8
|
TOXENV: flake8
|
||||||
|
- name: Run pre-commit 💅
|
||||||
|
run: tox
|
||||||
|
env:
|
||||||
|
TOXENV: pre-commit
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -42,10 +42,16 @@ commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
||||||
basepython = python3.9
|
basepython = python3.9
|
||||||
deps = -e.[dev]
|
deps = -e.[dev]
|
||||||
commands =
|
commands =
|
||||||
black --exclude "/migrations/" graphene_django examples setup.py --check
|
black graphene_django examples setup.py --check
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python3.9
|
basepython = python3.9
|
||||||
deps = -e.[dev]
|
deps = -e.[dev]
|
||||||
commands =
|
commands =
|
||||||
flake8 graphene_django examples setup.py
|
flake8 graphene_django examples setup.py
|
||||||
|
|
||||||
|
[testenv:pre-commit]
|
||||||
|
skip_install = true
|
||||||
|
deps = pre-commit
|
||||||
|
commands =
|
||||||
|
pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
Loading…
Reference in New Issue
Block a user