Skip to content

Commit b58c074

Browse files
authored
Format and validate pyproject.toml (#153)
1 parent 1d432fe commit b58c074

File tree

2 files changed

+60
-50
lines changed

2 files changed

+60
-50
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ repos:
1717
- id: end-of-file-fixer
1818
- id: forbid-new-submodules
1919
- id: trailing-whitespace
20+
21+
- repo: https://github.com/tox-dev/pyproject-fmt
22+
rev: 1.7.0
23+
hooks:
24+
- id: pyproject-fmt
25+
26+
- repo: https://github.com/abravalheri/validate-pyproject
27+
rev: v0.16
28+
hooks:
29+
- id: validate-pyproject

pyproject.toml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,66 @@
11
[build-system]
2-
requires = ["flit_core>=3.7"]
32
build-backend = "flit_core.buildapi"
3+
requires = [
4+
"flit_core>=3.7",
5+
]
46

5-
# project metadata
67
[project]
78
name = "sphinx-autobuild"
89
description = "Rebuild Sphinx documentation on changes, with hot reloading in the browser."
910
readme = "README.rst"
10-
urls.Changelog = "https://github.com/sphinx-doc/sphinx-autobuild/blob/main/NEWS.rst"
11-
urls.Documentation = "https://github.com/sphinx-doc/sphinx-autobuild#readme"
12-
urls.Download = "https://pypi.org/project/sphinx-autobuild/"
13-
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx-autobuild/issues"
14-
urls.Source = "https://github.com/sphinx-doc/sphinx-autobuild"
1511
license.text = "MIT"
12+
authors = [
13+
{name = "Adam Turner"},
14+
{name = "Jonathan Stoppani", email = "jonathan@stoppani.name"},
15+
]
1616
requires-python = ">=3.9"
17-
18-
# Classifiers list: https://pypi.org/classifiers/
1917
classifiers = [
20-
"Development Status :: 5 - Production/Stable",
21-
"Environment :: Console",
22-
"Environment :: Web Environment",
23-
"Framework :: Sphinx",
24-
"Intended Audience :: Developers",
25-
"License :: OSI Approved :: MIT License",
26-
"Operating System :: OS Independent",
27-
"Programming Language :: Python",
28-
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.9",
31-
"Programming Language :: Python :: 3.10",
32-
"Programming Language :: Python :: 3.11",
33-
"Programming Language :: Python :: 3.12",
34-
"Programming Language :: Python :: 3.13",
35-
"Programming Language :: Python :: Implementation :: CPython",
36-
"Programming Language :: Python :: Implementation :: PyPy",
37-
"Topic :: Documentation",
38-
"Topic :: Documentation :: Sphinx",
39-
"Topic :: Software Development",
40-
"Topic :: Software Development :: Documentation",
41-
"Topic :: Software Development :: Libraries :: Python Modules",
42-
"Topic :: Utilities",
18+
"Development Status :: 5 - Production/Stable",
19+
"Environment :: Console",
20+
"Environment :: Web Environment",
21+
"Framework :: Sphinx",
22+
"Intended Audience :: Developers",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: OS Independent",
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
32+
"Programming Language :: Python :: Implementation :: CPython",
33+
"Programming Language :: Python :: Implementation :: PyPy",
34+
"Topic :: Documentation",
35+
"Topic :: Documentation :: Sphinx",
36+
"Topic :: Software Development",
37+
"Topic :: Software Development :: Documentation",
38+
"Topic :: Software Development :: Libraries :: Python Modules",
39+
"Topic :: Utilities",
40+
]
41+
dynamic = [
42+
"version",
4343
]
4444
dependencies = [
45-
"colorama",
46-
"sphinx",
47-
"starlette>=0.35",
48-
"uvicorn>=0.25",
49-
"watchfiles>=0.20",
50-
"websockets>=11",
45+
"colorama",
46+
"sphinx",
47+
"starlette>=0.35",
48+
"uvicorn>=0.25",
49+
"watchfiles>=0.20",
50+
"websockets>=11",
5151
]
52-
dynamic = ["version"]
53-
5452
[project.optional-dependencies]
55-
docs = []
53+
docs = [
54+
]
5655
test = [
57-
"pytest>=6",
56+
"pytest>=6",
5857
]
59-
60-
[[project.authors]]
61-
name = "Adam Turner"
62-
63-
[[project.authors]]
64-
name = "Jonathan Stoppani"
65-
email = "jonathan@stoppani.name"
66-
58+
[project.urls]
59+
Changelog = "https://github.com/sphinx-doc/sphinx-autobuild/blob/main/NEWS.rst"
60+
Documentation = "https://github.com/sphinx-doc/sphinx-autobuild#readme"
61+
Download = "https://pypi.org/project/sphinx-autobuild/"
62+
"Issue tracker" = "https://github.com/sphinx-doc/sphinx-autobuild/issues"
63+
Source = "https://github.com/sphinx-doc/sphinx-autobuild"
6764
[project.scripts]
6865
sphinx-autobuild = "sphinx_autobuild.__main__:main"
6966

@@ -76,3 +73,6 @@ include = [
7673
"tests/",
7774
"noxfile.py",
7875
]
76+
77+
[tool.pyproject-fmt]
78+
max_supported_python = "3.13"

0 commit comments

Comments
 (0)