Skip to content

Commit

Permalink
chore: remove black, flake8, ... from dependencies and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
kiendang committed Aug 5, 2023
1 parent 5b8c6b6 commit 2b51f81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Run lint and static type checks
run: tox
env:
TOXENV: flake8,black,import-order,mypy,manifest
TOXENV: pre-commit,mypy
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
]

dev_requires = [
"flake8>=5,<6",
"isort>=5,<6",
"black>=22.12,<22.13",
"mypy>=0.991,<1",
"check-manifest>=0.47,<1",
] + tests_requires

install_flask_requires = [
Expand Down
28 changes: 5 additions & 23 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
pre-commit,mypy,
py{37,38,39,310,311}
; requires = tox-conda

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

[testenv:black]
basepython = python3.10
deps = -e.[dev]
commands =
black --check graphql_server tests

[testenv:flake8]
basepython = python3.10
deps = -e.[dev]
commands =
flake8 setup.py graphql_server tests

[testenv:import-order]
basepython = python3.10
deps = -e.[dev]
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands =
isort graphql_server/ tests/
pre-commit run --all-files --show-diff-on-failure

[testenv:mypy]
basepython = python3.10
deps = -e.[dev]
commands =
mypy graphql_server tests --ignore-missing-imports

[testenv:manifest]
basepython = python3.10
deps = -e.[dev]
commands =
check-manifest -v

0 comments on commit 2b51f81

Please sign in to comment.