Skip to content

Commit

Permalink
Move tox ini into pyproject toml and refactor env commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwernervt committed Jan 21, 2021
1 parent cd130dc commit 3056beb
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ legacy_tox_ini = """
envlist =
check
lint
py35
py36
py37
py38
py39
docs
[testenv]
Expand All @@ -27,20 +27,17 @@ passenv = *
commands = pytest {posargs}
[testenv:check]
deps =
docutils==0.16
check-manifest==0.41
readme-renderer==25.0
pygments==2.6.1
skip_install = true
extras =
check
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest -v
[testenv:lint]
deps = pre-commit~=2.0
skip_install = true
commands = pre-commit run --all-files
extras =
lint
commands =
pre-commit run --all-files
[testenv:docs]
deps = -rdocs/requirements.txt
Expand All @@ -51,7 +48,7 @@ commands =

[tool.black]
line-length = 88
target-version = ["py35", "py36", "py37", "py38"]
target-version = ["py36", "py37", "py38"]
include = '\.pyi?$'
exclude = '''
/(
Expand Down

0 comments on commit 3056beb

Please sign in to comment.