Lint: Update outdated package dependencies & reformat files (#3291)

* 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
```
This commit is contained in:
shailshouryya 2023-08-15 22:07:57 -07:00 committed by GitHub
parent 6adff45cef
commit 0ebf5a4390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

View File

@ -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"

View File

@ -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"):

10
tox.ini
View File

@ -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}