1
1
[build-system ]
2
2
build-backend =" flit_core.buildapi"
3
3
requires = [
4
- " flit_core >=3.7" ,
4
+ " flit-core >=3.7" ,
5
5
]
6
6
7
7
[project ]
@@ -10,7 +10,7 @@ version = "2024.6"
10
10
description =" The Sphinx theme for the CPython docs and related projects"
11
11
readme =" README.md"
12
12
license.file =" LICENSE"
13
- authors = [{ name =" PyPA" ,email =" distutils-sig@python.org" } ]
13
+ authors = [ { name =" PyPA" ,email =" distutils-sig@python.org" } ]
14
14
requires-python =" >=3.9"
15
15
classifiers = [
16
16
" Development Status :: 5 - Production/Stable" ,
@@ -32,22 +32,18 @@ urls.Code = "https://github.com/python/python-docs-theme"
32
32
urls.Download =" https://pypi.org/project/python-docs-theme/"
33
33
urls.Homepage =" https://github.com/python/python-docs-theme/"
34
34
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"
37
36
38
37
[tool .flit .module ]
39
38
name =" python_docs_theme"
40
39
41
40
[tool .flit .sdist ]
42
- include = [
43
- " python_docs_theme/" ,
44
- ]
41
+ include = [" python_docs_theme/" ]
45
42
46
43
[tool .ruff ]
47
44
fix =true
48
45
49
- [tool .ruff .lint ]
50
- select = [
46
+ lint.select = [
51
47
" C4" ,# flake8-comprehensions
52
48
" E" ,# pycodestyle errors
53
49
" F" ,# pyflakes errors
@@ -56,19 +52,16 @@ select = [
56
52
" LOG" ,# flake8-logging
57
53
" PGH" ,# pygrep-hooks
58
54
" PYI" ,# flake8-pyi
59
- " RUF100" ,# unused noqa (yesqa)
60
55
" RUF022" ,# unsorted-dunder-all
56
+ " RUF100" ,# unused noqa (yesqa)
61
57
" UP" ,# pyupgrade
62
58
" W" ,# pycodestyle warnings
63
59
" YTT" ,# flake8-2020
64
60
]
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 ','
70
66
]
71
-
72
-
73
- [tool .ruff .lint .isort ]
74
- required-imports = [" from __future__ import annotations" ]
67
+ lint.isort.required-imports = [" from __future__ import annotations" ]