From 75e45bbdacd2a333691909ca5af95e00502cf371 Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Wed, 13 Oct 2021 06:34:32 -0500 Subject: [PATCH] Ensure setup-cfg-fmt does not re-add Py2 --- .pre-commit-config.yaml | 1 + .tool-versions | 1 + setup.cfg | 1 + tox.ini | 5 +---- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .tool-versions diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25a7bba..c6cb951 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,3 +34,4 @@ repos: rev: v1.18.0 hooks: - id: setup-cfg-fmt + args: [--min-py3-version, '3.6'] diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..5c7b5b3 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +python 3.6.12 3.7.9 3.8.6 3.9.2 3.10.0 diff --git a/setup.cfg b/setup.cfg index 5798ea5..3881347 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,7 @@ classifiers = License :: OSI Approved :: BSD License Programming Language :: Python Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 diff --git a/tox.ini b/tox.ini index 6a5e0cb..c7b3a75 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,5 @@ [tox] envlist = - py27, - py34, - py35, py36, py37, py38, @@ -37,7 +34,7 @@ commands = skip_install = true deps = pre-commit commands = - pre-commit run --all-files --show-diff-on-failure + pre-commit run {posargs:--all-files --show-diff-on-failure} [testenv:docs] deps = -rdocs/source/requirements.txt