Skip to content

Commit 1c6570b

Browse files
committed
chore: remove black, flake8, ... from dependencies and tox
1 parent 8794d53 commit 1c6570b

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>=6,<7",
20-
"isort>=5,<6",
21-
"black>=23.9,<23.10",
2219
"mypy>=1.6,<1.7",
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{38,39,310,311}
55
; requires = tox-conda
66

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

28-
[testenv:black]
29-
basepython = python3.11
30-
deps = -e.[dev]
31-
commands =
32-
black --check graphql_server tests
33-
34-
[testenv:flake8]
35-
basepython = python3.11
36-
deps = -e.[dev]
37-
commands =
38-
flake8 setup.py graphql_server tests
39-
40-
[testenv:import-order]
41-
basepython = python3.11
42-
deps = -e.[dev]
28+
[testenv:pre-commit]
29+
skip_install = true
30+
deps = pre-commit
4331
commands =
44-
isort graphql_server/ tests/
32+
pre-commit run --all-files --show-diff-on-failure {posargs}
4533

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

0 commit comments

Comments
 (0)