mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-16 15:12:06 +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
|
||||
env:
|
||||
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
|
||||
deps = -e.[dev]
|
||||
commands =
|
||||
black --exclude "/migrations/" graphene_django examples setup.py --check
|
||||
black graphene_django examples setup.py --check
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python3.9
|
||||
deps = -e.[dev]
|
||||
commands =
|
||||
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