👷 Lint on CI

This commit is contained in:
Nikolai R Kristiansen 2022-08-15 12:14:47 +02:00
parent 1bc988ff7c
commit 908ea34f55
2 changed files with 11 additions and 1 deletions

View File

@ -20,3 +20,7 @@ jobs:
run: tox
env:
TOXENV: flake8
- name: Run pre-commit 💅
run: tox
env:
TOXENV: pre-commit

View File

@ -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