Skip to content

Commit 7d634de

Browse files
committed
Update pre-commit
1 parent beb9aab commit 7d634de

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.4.0
3+
rev: v0.6.8
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.4.0
9+
rev: 24.8.0
1010
hooks:
1111
- id: black
1212

@@ -22,24 +22,24 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/python-jsonschema/check-jsonschema
25-
rev: 0.28.2
25+
rev: 0.29.2
2626
hooks:
2727
- id: check-dependabot
2828
- id: check-github-workflows
2929

3030
- repo: https://github.com/rhysd/actionlint
31-
rev: v1.6.27
31+
rev: v1.7.2
3232
hooks:
3333
- id: actionlint
3434

3535
- repo: https://github.com/tox-dev/pyproject-fmt
36-
rev: 1.8.0
36+
rev: 2.2.4
3737
hooks:
3838
- id: pyproject-fmt
3939
args: [--max-supported-python=3.13]
4040

4141
- repo: https://github.com/abravalheri/validate-pyproject
42-
rev: v0.16
42+
rev: v0.20.2
4343
hooks:
4444
- id: validate-pyproject
4545

pyproject.toml

+12-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "flit_core.buildapi"
33
requires = [
4-
"flit_core>=3.7",
4+
"flit-core>=3.7",
55
]
66

77
[project]
@@ -10,7 +10,7 @@ version = "2024.6"
1010
description = "The Sphinx theme for the CPython docs and related projects"
1111
readme = "README.md"
1212
license.file = "LICENSE"
13-
authors = [{name = "PyPA", email = "distutils-sig@python.org"}]
13+
authors = [ { name = "PyPA", email = "distutils-sig@python.org" } ]
1414
requires-python = ">=3.9"
1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",
@@ -32,22 +32,18 @@ urls.Code = "https://github.com/python/python-docs-theme"
3232
urls.Download = "https://pypi.org/project/python-docs-theme/"
3333
urls.Homepage = "https://github.com/python/python-docs-theme/"
3434
urls."Issue tracker" = "https://github.com/python/python-docs-theme/issues"
35-
[project.entry-points."sphinx.html_themes"]
36-
python_docs_theme = 'python_docs_theme'
35+
entry-points."sphinx.html_themes".python_docs_theme = "python_docs_theme"
3736

3837
[tool.flit.module]
3938
name = "python_docs_theme"
4039

4140
[tool.flit.sdist]
42-
include = [
43-
"python_docs_theme/",
44-
]
41+
include = [ "python_docs_theme/" ]
4542

4643
[tool.ruff]
4744
fix = true
4845

49-
[tool.ruff.lint]
50-
select = [
46+
lint.select = [
5147
"C4", # flake8-comprehensions
5248
"E", # pycodestyle errors
5349
"F", # pyflakes errors
@@ -56,19 +52,16 @@ select = [
5652
"LOG", # flake8-logging
5753
"PGH", # pygrep-hooks
5854
"PYI", # flake8-pyi
59-
"RUF100", # unused noqa (yesqa)
6055
"RUF022", # unsorted-dunder-all
56+
"RUF100", # unused noqa (yesqa)
6157
"UP", # pyupgrade
6258
"W", # pycodestyle warnings
6359
"YTT", # flake8-2020
6460
]
65-
ignore = [
66-
"E203", # Whitespace before ':'
67-
"E221", # Multiple spaces before operator
68-
"E226", # Missing whitespace around arithmetic operator
69-
"E241", # Multiple spaces after ','
61+
lint.ignore = [
62+
"E203", # Whitespace before ':'
63+
"E221", # Multiple spaces before operator
64+
"E226", # Missing whitespace around arithmetic operator
65+
"E241", # Multiple spaces after ','
7066
]
71-
72-
73-
[tool.ruff.lint.isort]
74-
required-imports = ["from __future__ import annotations"]
67+
lint.isort.required-imports = [ "from __future__ import annotations" ]

0 commit comments

Comments
 (0)