From 3056bebbb6f38c1903a21a107aa2a1ac3224cc57 Mon Sep 17 00:00:00 2001 From: Scott Werner Date: Thu, 21 Jan 2021 08:59:32 -0500 Subject: [PATCH] Move tox ini into pyproject toml and refactor env commands. --- pyproject.toml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cfd3599..9e58526 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,10 +8,10 @@ legacy_tox_ini = """ envlist = check lint - py35 py36 py37 py38 + py39 docs [testenv] @@ -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 @@ -51,7 +48,7 @@ commands = [tool.black] line-length = 88 -target-version = ["py35", "py36", "py37", "py38"] +target-version = ["py36", "py37", "py38"] include = '\.pyi?$' exclude = ''' /(