[go: nahoru, domu]

Skip to content

Commit

Permalink
Format and validate pyproject.toml (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 27, 2024
1 parent 1d432fe commit b58c074
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 50 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ repos:
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
hooks:
- id: validate-pyproject
100 changes: 50 additions & 50 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,69 +1,66 @@
[build-system]
requires = ["flit_core>=3.7"]
build-backend = "flit_core.buildapi"
requires = [
"flit_core>=3.7",
]

# project metadata
[project]
name = "sphinx-autobuild"
description = "Rebuild Sphinx documentation on changes, with hot reloading in the browser."
readme = "README.rst"
urls.Changelog = "https://github.com/sphinx-doc/sphinx-autobuild/blob/main/NEWS.rst"
urls.Documentation = "https://github.com/sphinx-doc/sphinx-autobuild#readme"
urls.Download = "https://pypi.org/project/sphinx-autobuild/"
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx-autobuild/issues"
urls.Source = "https://github.com/sphinx-doc/sphinx-autobuild"
license.text = "MIT"
authors = [
{name = "Adam Turner"},
{name = "Jonathan Stoppani", email = "jonathan@stoppani.name"},
]
requires-python = ">=3.9"

# Classifiers list: https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Sphinx",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Topic :: Software Development",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Sphinx",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Topic :: Software Development",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dynamic = [
"version",
]
dependencies = [
"colorama",
"sphinx",
"starlette>=0.35",
"uvicorn>=0.25",
"watchfiles>=0.20",
"websockets>=11",
"colorama",
"sphinx",
"starlette>=0.35",
"uvicorn>=0.25",
"watchfiles>=0.20",
"websockets>=11",
]
dynamic = ["version"]

[project.optional-dependencies]
docs = []
docs = [
]
test = [
"pytest>=6",
"pytest>=6",
]

[[project.authors]]
name = "Adam Turner"

[[project.authors]]
name = "Jonathan Stoppani"
email = "jonathan@stoppani.name"

[project.urls]
Changelog = "https://github.com/sphinx-doc/sphinx-autobuild/blob/main/NEWS.rst"
Documentation = "https://github.com/sphinx-doc/sphinx-autobuild#readme"
Download = "https://pypi.org/project/sphinx-autobuild/"
"Issue tracker" = "https://github.com/sphinx-doc/sphinx-autobuild/issues"
Source = "https://github.com/sphinx-doc/sphinx-autobuild"
[project.scripts]
sphinx-autobuild = "sphinx_autobuild.__main__:main"

Expand All @@ -76,3 +73,6 @@ include = [
"tests/",
"noxfile.py",
]

[tool.pyproject-fmt]
max_supported_python = "3.13"

0 comments on commit b58c074

Please sign in to comment.