Skip to content

Commit

Permalink
ci: streamline tox env dependencies
Browse files Browse the repository at this point in the history
Also makes it easier to install locally
  • Loading branch information
jerivas committed Sep 10, 2020
1 parent 398446a commit 2abd23c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ install_requires =

[options.extras_require]
testing =
tox >= 3, <4
pytest-django >= 3, <4
codestyle =
flake8 >= 3, <4
black==20.8b1

[options.entry_points]
console_scripts =
Expand All @@ -69,7 +72,7 @@ envlist =
[testenv]
# Run test suite
deps =
pytest-django >=3, <4
.[testing]
dj22: Django>=2.2, <3
dj30: Django>=3.0, <3.1
dj31: Django>=3.1, <3.2
Expand All @@ -96,26 +99,23 @@ commands =
twine check "{envtmpdir}/dist/*"
check-manifest --ignore-bad-ideas '*.mo' {toxinidir}

[testenv:black]
# Lint with black
skip_install = true
deps =
black==20.8b1
commands = black . --check --exclude "(\.tox|\.git|build|dist|migrations)"

[testenv:format]
# This env is not run by default. It's provided here for you
# to easily autoformat code by running `tox -e format`
skip_install = true
deps =
black==20.8b1
commands = black . --exclude "(\.tox|\.git|build|dist|migrations)"
deps = .[codestyle]
commands = black .

[testenv:black]
# Lint with black
skip_install = true
deps = .[codestyle]
commands = black . --check

[testenv:flake8]
# Lint with flake8
skip_install = true
deps =
flake8 >= 3, <4
deps = .[codestyle]
commands = flake8 .

[flake8]
Expand Down

0 comments on commit 2abd23c

Please sign in to comment.