Skip to content

Commit

Permalink
chore: update tox.ini and ci
Browse files Browse the repository at this point in the history
Remove darglint testenv, and add skipdist to linting testenv
  • Loading branch information
marcofavorito committed Jul 9, 2023
1 parent 4469129 commit 768cc50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
tox -e black-check
tox -e isort-check
tox -e flake8
tox -e darglint
- name: Unused code check
run: tox -e vulture
- name: Static type check
Expand Down
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist = bandit, black-check, check-copyright, darglint, docs, flake8, isort-check, mypy, safety, pylint, vulture, py3{8,9,10,11}
envlist = bandit, black-check, check-copyright, docs, flake8, isort-check, mypy, safety, pylint, vulture, py3{8,9,10,11}
labels =
code = py3{8,9,10,11}
meta = bandit, black-check, check-copyright, darglint, docs, flake8, isort-check, mypy, safety, pylint, vulture
meta = bandit, black-check, check-copyright, docs, flake8, isort-check, mypy, safety, pylint, vulture

[testenv]
allowlist_externals = pytest
Expand Down Expand Up @@ -47,21 +47,25 @@ commands =
mypy plan4past tests

[testenv:black]
skipdist = True
skip_install = True
deps = black>=23.3.0,<23.4.0
commands = black plan4past tests

[testenv:black-check]
skipdist = True
skip_install = True
deps = black>=23.3.0,<23.4.0
commands = black plan4past tests --check --verbose

[testenv:isort]
skipdist = True
skip_install = True
deps = isort>=5.12.0,<5.13.0
commands = isort plan4past tests

[testenv:isort-check]
skipdist = True
skip_install = True
deps = isort>=5.12.0,<5.13.0
commands = isort --check-only plan4past tests
Expand Down

0 comments on commit 768cc50

Please sign in to comment.