Skip to content

Commit 35378d5

Browse files
committed
chore: remove black, flake8, ... from dependencies and tox
1 parent 7832cc5 commit 35378d5

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: Run lint and static type checks
2020
run: tox
2121
env:
22-
TOXENV: flake8,black,import-order,mypy,manifest
22+
TOXENV: pre-commit,mypy

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
]
1717

1818
dev_requires = [
19-
"flake8>=5,<6",
20-
"isort>=5,<6",
21-
"black>=22.12,<22.13",
2219
"mypy>=0.991,<1",
23-
"check-manifest>=0.47,<1",
2420
] + tests_requires
2521

2622
install_flask_requires = [

tox.ini

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
black,flake8,import-order,mypy,manifest,
3+
pre-commit,mypy,
44
py{37,38,39,310,311}
55
; requires = tox-conda
66

@@ -26,32 +26,14 @@ commands =
2626
py{37,38,39,311}: pytest tests {posargs}
2727
py{310}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs}
2828

29-
[testenv:black]
30-
basepython = python3.10
31-
deps = -e.[dev]
32-
commands =
33-
black --check graphql_server tests
34-
35-
[testenv:flake8]
36-
basepython = python3.10
37-
deps = -e.[dev]
38-
commands =
39-
flake8 setup.py graphql_server tests
40-
41-
[testenv:import-order]
42-
basepython = python3.10
43-
deps = -e.[dev]
29+
[testenv:pre-commit]
30+
skip_install = true
31+
deps = pre-commit
4432
commands =
45-
isort graphql_server/ tests/
33+
pre-commit run --all-files --show-diff-on-failure
4634

4735
[testenv:mypy]
4836
basepython = python3.10
4937
deps = -e.[dev]
5038
commands =
5139
mypy graphql_server tests --ignore-missing-imports
52-
53-
[testenv:manifest]
54-
basepython = python3.10
55-
deps = -e.[dev]
56-
commands =
57-
check-manifest -v

0 commit comments

Comments
 (0)