[pre-commit] Add pyproject-fmt to normalize the pyproject.toml (#846)

This commit is contained in:
Pierre Sassoulas 2024-11-20 16:23:39 +01:00 committed by GitHub
parent c2181e4e83
commit 69de0b6cc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 29 deletions

View File

@ -5,6 +5,13 @@ repos:
- id: black - id: black
args: [--safe, --quiet, --line-length=88] args: [--safe, --quiet, --line-length=88]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
additional_dependencies: ["tox>=4.9"]
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: 1.19.1 rev: 1.19.1
hooks: hooks:

View File

@ -9,26 +9,27 @@ requires = [
name = "pytest-html" name = "pytest-html"
description = "pytest plugin for generating HTML reports" description = "pytest plugin for generating HTML reports"
readme = "README.rst" readme = "README.rst"
license = "MPL-2.0"
requires-python = ">=3.9"
keywords = [ keywords = [
"pytest",
"html", "html",
"pytest",
"report", "report",
] ]
license = "MPL-2.0"
authors = [ authors = [
{ name = "Dave Hunt", email = "dhunt@mozilla.com" }, { name = "Dave Hunt", email = "dhunt@mozilla.com" },
{ name = "Jim Brannlund", email = "jimbrannlund@fastmail.com" }, { name = "Jim Brannlund", email = "jimbrannlund@fastmail.com" },
] ]
requires-python = ">=3.9"
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Framework :: Pytest", "Framework :: Pytest",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English", "Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X", "Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
@ -40,40 +41,35 @@ classifiers = [
"Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing",
"Topic :: Utilities", "Topic :: Utilities",
] ]
dependencies = [
"pytest>=7.0.0",
"pytest-metadata>=2.0.0",
"Jinja2>=3.0.0",
]
dynamic = [ dynamic = [
"version", "version",
] ]
[project.optional-dependencies] dependencies = [
docs = [ "jinja2>=3",
"pip-tools>=6.13.0", "pytest>=7",
"pytest-metadata>=2",
] ]
test = [ optional-dependencies.docs = [
"pip-tools>=6.13",
]
optional-dependencies.test = [
"assertpy>=1.1", "assertpy>=1.1",
"beautifulsoup4>=4.11.1", "beautifulsoup4>=4.11.1",
"black>=22.1.0", "black>=22.1",
"flake8>=4.0.1", "flake8>=4.0.1",
"pre-commit>=2.17.0", "pre-commit>=2.17",
"pytest-xdist>=2.4.0", "pytest-mock>=3.7",
"pytest-mock>=3.7.0",
"pytest-rerunfailures>=11.1.2", "pytest-rerunfailures>=11.1.2",
"selenium>=4.3.0", "pytest-xdist>=2.4",
"selenium>=4.3",
"tox>=3.24.5", "tox>=3.24.5",
] ]
urls.Homepage = "https://github.com/pytest-dev/pytest-html"
[project.urls] urls.Source = "https://github.com/pytest-dev/pytest-html"
Homepage = "https://github.com/pytest-dev/pytest-html" urls.Tracker = "https://github.com/pytest-dev/pytest-html/issues"
Tracker = "https://github.com/pytest-dev/pytest-html/issues" entry-points.pytest11.html = "pytest_html.plugin"
Source = "https://github.com/pytest-dev/pytest-html" entry-points.pytest11.html_fixtures = "pytest_html.fixtures"
[project.entry-points.pytest11]
html = "pytest_html.plugin"
html_fixtures = "pytest_html.fixtures"
[tool.hatch.envs.test] [tool.hatch.envs.test]
features = [ features = [