11[build-system]
22build-backend = "flit_core.buildapi"
33requires = [
4- "flit_core >=3.7",
4+ "flit-core >=3.7",
55]
66
77[project]
@@ -10,7 +10,7 @@ version = "2024.6"
1010description = "The Sphinx theme for the CPython docs and related projects"
1111readme = "README.md"
1212license.file = "LICENSE"
13- authors = [{ name = "PyPA", email = "distutils-sig@python.org"} ]
13+ authors = [ { name = "PyPA", email = "distutils-sig@python.org" } ]
1414requires-python = ">=3.9"
1515classifiers = [
1616 "Development Status :: 5 - Production/Stable",
@@ -32,22 +32,18 @@ urls.Code = "https://github.com/python/python-docs-theme"
3232urls.Download = "https://pypi.org/project/python-docs-theme/"
3333urls.Homepage = "https://github.com/python/python-docs-theme/"
3434urls."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]
3938name = "python_docs_theme"
4039
4140[tool.flit.sdist]
42- include = [
43- "python_docs_theme/",
44- ]
41+ include = [ "python_docs_theme/" ]
4542
4643[tool.ruff]
4744fix = 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