Skip to content

Commit

Permalink
Meta: Update pre-commit to fix Sphinx Lint (python#3585)
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
hugovk and JelleZijlstra authored Dec 12, 2023
1 parent a05ec2e commit e919294
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .codespell/ignore-words.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
adaptee
ancilliary
ans
anull
arithmetics
asend
ba
ccompiler
clos
complies
crate
dedented
dota
extraversion
falsy
fo
groth
iif
implementor
implementors
nd
ned
re-usable
re-use
recuse
reenable
referencable
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default_stages: [commit]
repos:
# General file checks and fixers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: mixed-line-ending
name: "Normalize mixed line endings"
Expand Down Expand Up @@ -42,8 +42,8 @@ repos:
- id: check-yaml
name: "Check YAML"

- repo: https://github.com/psf/black
rev: 23.7.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.0
hooks:
- id: black
name: "Format with Black"
Expand All @@ -53,7 +53,7 @@ repos:
files: 'pep_sphinx_extensions/tests/.*'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.1.7
hooks:
- id: ruff
name: "Lint with Ruff"
Expand All @@ -68,7 +68,7 @@ repos:
name: "Format tox.ini"

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.6.8
rev: v0.9.1
hooks:
- id: sphinx-lint
name: "Sphinx lint"
Expand All @@ -89,7 +89,7 @@ repos:

# Manual codespell check
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
name: "Check for common misspellings in text files"
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ this link**, as it does not provide the option to populate the PR template.

However, you *can* use the ``gh`` command line tool. ``gh pr create`` will allow
you to create a pull request, will prompt you for the template you wish to use,
and then give you the option of continuing editing in your broswer.
and then give you the option of continuing editing in your browser.

Alternatively, after pushing your branch, you can visit
`https://github.com/python/peps <https://github.com/python/peps>`__, and follow
Expand Down

0 comments on commit e919294

Please sign in to comment.