From c58adfa0dd8b1e5e0cb42856b67a77410e894d94 Mon Sep 17 00:00:00 2001 From: shailshouryya <42100758+shailshouryya@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:56:26 -0700 Subject: [PATCH 1/2] =?UTF-8?q?Update=20`sphinx-lint`=20package=20dependen?= =?UTF-8?q?cy=20version=20number=20=E2=86=92=200.6.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5012191ca19..a5855c12435 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: 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" From 2c0889a30e0357a703a9806f87a5075a8b0e03b8 Mon Sep 17 00:00:00 2001 From: shailshouryya <42100758+shailshouryya@users.noreply.github.com> Date: Tue, 15 Aug 2023 21:51:15 -0700 Subject: [PATCH 2/2] 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 | 6 +++--- .../tests/pep_zero_generator/test_parser.py | 1 - tox.ini | 10 ++++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5855c12435..9f03d60e078 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,7 +61,7 @@ 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" @@ -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 4b94a945cdd..d5ebab143e6 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 cc88b26bdd3..ac54601b661 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}