mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-13 05:34:20 +03:00
🔧 Remove black and flake8 from tox config
This commit is contained in:
parent
c9b942852d
commit
60f837ecf5
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
@ -16,10 +16,6 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install tox
|
||||
- name: Run lint 💅
|
||||
run: tox
|
||||
env:
|
||||
TOXENV: flake8
|
||||
- name: Run pre-commit 💅
|
||||
run: tox
|
||||
env:
|
||||
|
|
|
@ -23,7 +23,6 @@ repos:
|
|||
rev: 22.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
exclude: migrations/
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 4.0.1
|
||||
hooks:
|
||||
|
|
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ test: tests # Alias test -> tests
|
|||
|
||||
.PHONY: format
|
||||
format:
|
||||
black --exclude "/migrations/" graphene_django examples setup.py
|
||||
black graphene_django examples setup.py
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
|
|
|
@ -5,7 +5,7 @@ test=pytest
|
|||
universal=1
|
||||
|
||||
[flake8]
|
||||
exclude = docs,graphene_django/debug/sql/*,migrations
|
||||
exclude = docs,graphene_django/debug/sql/*
|
||||
max-line-length = 120
|
||||
select =
|
||||
# Dictionary key repeated
|
||||
|
|
14
tox.ini
14
tox.ini
|
@ -3,7 +3,7 @@ envlist =
|
|||
py{36,37,38,39}-django{22,30,31},
|
||||
py{36,37,38,39,310}-django32,
|
||||
py{38,39,310}-django{40,main},
|
||||
black,flake8
|
||||
pre-commit
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
|
@ -38,18 +38,6 @@ deps =
|
|||
djangomain: https://github.com/django/django/archive/main.zip
|
||||
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
||||
|
||||
[testenv:black]
|
||||
basepython = python3.9
|
||||
deps = -e.[dev]
|
||||
commands =
|
||||
black --exclude "/migrations/" 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user