Skip to content

Commit

Permalink
[pre-commit] Add pyproject-fmt to normalize the pyproject.toml (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Nov 20, 2024
1 parent c2181e4 commit 69de0b6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ repos:
- id: black
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
rev: 1.19.1
hooks:
Expand Down
54 changes: 25 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ requires = [
name = "pytest-html"
description = "pytest plugin for generating HTML reports"
readme = "README.rst"
license = "MPL-2.0"
requires-python = ">=3.9"
keywords = [
"pytest",
"html",
"pytest",
"report",
]
license = "MPL-2.0"
authors = [
{ name = "Dave Hunt", email = "[email protected]" },
{ name = "Dave Hunt", email = "[email protected]" },
{ name = "Jim Brannlund", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"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.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -40,40 +41,35 @@ classifiers = [
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
dependencies = [
"pytest>=7.0.0",
"pytest-metadata>=2.0.0",
"Jinja2>=3.0.0",
]
dynamic = [
"version",
]

[project.optional-dependencies]
docs = [
"pip-tools>=6.13.0",
dependencies = [
"jinja2>=3",
"pytest>=7",
"pytest-metadata>=2",
]
optional-dependencies.docs = [
"pip-tools>=6.13",
]
test = [
optional-dependencies.test = [
"assertpy>=1.1",
"beautifulsoup4>=4.11.1",
"black>=22.1.0",
"black>=22.1",
"flake8>=4.0.1",
"pre-commit>=2.17.0",
"pytest-xdist>=2.4.0",
"pytest-mock>=3.7.0",
"pre-commit>=2.17",
"pytest-mock>=3.7",
"pytest-rerunfailures>=11.1.2",
"selenium>=4.3.0",
"pytest-xdist>=2.4",
"selenium>=4.3",
"tox>=3.24.5",
]

[project.urls]
Homepage = "https://github.com/pytest-dev/pytest-html"
Tracker = "https://github.com/pytest-dev/pytest-html/issues"
Source = "https://github.com/pytest-dev/pytest-html"

[project.entry-points.pytest11]
html = "pytest_html.plugin"
html_fixtures = "pytest_html.fixtures"
urls.Homepage = "https://github.com/pytest-dev/pytest-html"
urls.Source = "https://github.com/pytest-dev/pytest-html"
urls.Tracker = "https://github.com/pytest-dev/pytest-html/issues"
entry-points.pytest11.html = "pytest_html.plugin"
entry-points.pytest11.html_fixtures = "pytest_html.fixtures"

[tool.hatch.envs.test]
features = [
Expand Down

0 comments on commit 69de0b6

Please sign in to comment.