From 0ebf5a4390c27ac81f786dc87c46c39afc3fa1dd Mon Sep 17 00:00:00 2001 From: shailshouryya <42100758+shailshouryya@users.noreply.github.com> Date: Tue, 15 Aug 2023 22:07:57 -0700 Subject: [PATCH] Lint: Update outdated package dependencies & reformat files (#3291) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update `sphinx-lint` package dependency version number → 0.6.8 This new release includes the changes from https://github.com/sphinx-contrib/sphinx-lint/pull/56/files, which should address https://github.com/python/peps/issues/3028. For details about `sphinx-lint` release 0.6.8, see https://github.com/sphinx-contrib/sphinx-lint/releases/tag/v0.6.8. * Update other outdated dependencies Run the following: ``` python -m pip install pre-commit pre-commit autoupdate pre-commit run --all-files ``` --- .pre-commit-config.yaml | 8 ++++---- .../tests/pep_zero_generator/test_parser.py | 1 - tox.ini | 10 ++++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5012191ca..9f03d60e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: name: "Check YAML" - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.7.0 hooks: - id: black name: "Format with Black" @@ -61,13 +61,13 @@ repos: files: 'pep_sphinx_extensions/tests/.*' - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 0.6.1 + rev: 1.3.1 hooks: - id: tox-ini-fmt name: "Format tox.ini" - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v0.6.7 + rev: v0.6.8 hooks: - id: sphinx-lint name: "Sphinx lint" @@ -92,7 +92,7 @@ repos: # Manual codespell check - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.5 hooks: - id: codespell name: "Check for common misspellings in text files" diff --git a/pep_sphinx_extensions/tests/pep_zero_generator/test_parser.py b/pep_sphinx_extensions/tests/pep_zero_generator/test_parser.py index 4b94a945c..d5ebab143 100644 --- a/pep_sphinx_extensions/tests/pep_zero_generator/test_parser.py +++ b/pep_sphinx_extensions/tests/pep_zero_generator/test_parser.py @@ -87,7 +87,6 @@ def test_parse_authors(test_input, expected): def test_parse_authors_invalid(): - pep = parser.PEP(Path("pep-0008.txt")) with pytest.raises(PEPError, match="no authors found"): diff --git a/tox.ini b/tox.ini index cc88b26bd..ac54601b6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,14 @@ [tox] -envlist = +requires = + tox>=4.2 +env_list = py{312, 311, 310, 39} -skipsdist = true +no_package = true [testenv] -passenv = - FORCE_COLOR deps = -rrequirements.txt +pass_env = + FORCE_COLOR commands = python -bb -X dev -W error -m pytest {posargs}