From e11bacf107903375b5c42bda799e94f5dbe12978 Mon Sep 17 00:00:00 2001 From: Ryan Hiebert Date: Sun, 25 Dec 2022 11:53:39 -0600 Subject: [PATCH] Explicit non-support for tox 4 (#160) * Explicit non-support for tox 4 * Add empty pre-commit config * Pre-commit config * Bump version --- .gitignore | 1 + .pre-commit-config.yaml | 7 +++++++ LICENSE | 1 - docs/Makefile | 2 +- docs/conf.py | 2 +- docs/envlist.rst | 1 - setup.py | 4 ++-- 7 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 8f5d122..5cccd49 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ docs/_build/ /htmlcov/ /.pytest_cache/ /.vscode/ +/.venv/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..859ac3d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/LICENSE b/LICENSE index d4b6cf1..8a65536 100644 --- a/LICENSE +++ b/LICENSE @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/docs/Makefile b/docs/Makefile index 4c754ef..37c470f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,4 +17,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/conf.py b/docs/conf.py index be77005..1388d4f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,7 +65,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. diff --git a/docs/envlist.rst b/docs/envlist.rst index 32d1372..30f7ef0 100644 --- a/docs/envlist.rst +++ b/docs/envlist.rst @@ -153,4 +153,3 @@ And in your ``tox.ini``: [travis] unignore_outcomes = True - diff --git a/setup.py b/setup.py index 2fdba3e..d84402b 100644 --- a/setup.py +++ b/setup.py @@ -62,13 +62,13 @@ def default_environment(): author_email='ryan@ryanhiebert.com', url='https://github.com/tox-dev/tox-travis', license='MIT', - version='0.12', + version='0.13', package_dir={'': 'src'}, packages=find_packages('src'), entry_points={ 'tox': ['travis = tox_travis.hooks'], }, - install_requires=['tox>=2.0'], + install_requires=['tox>=2.0,<4'], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', classifiers=[ 'Development Status :: 4 - Beta',