Skip to content

Commit 5f28dfe

Browse files
use pyproject fmt pre-commit hook
1 parent 138896b commit 5f28dfe

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.pre-commit-config.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ repos:
3131
hooks:
3232
- id: pyupgrade
3333
args: [--py37-plus]
34-
- repo: https://github.com/asottile/setup-cfg-fmt
35-
rev: v1.20.1
36-
hooks:
37-
- id: setup-cfg-fmt
34+
35+
- repo: https://github.com/tox-dev/pyproject-fmt
36+
rev: "0.3.3"
37+
hooks:
38+
- id: pyproject-fmt

pyproject.toml

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
[build-system]
2+
build-backend = "hatchling.build"
23
requires = [
3-
"hatchling>=0.24.0", "hatch-vcs"
4+
"hatch-vcs",
5+
"hatchling>=0.24",
46
]
5-
build-backend = "hatchling.build"
67

78
[project]
89
name = "apipkg"
910
description = "apipkg: namespace control and lazy-import mechanism"
1011
readme = "README.rst"
1112
license = "MIT"
12-
requires-python = ">=3.7"
13+
maintainers = [
14+
{ name = "Ronny Pfannschmidt", email = "[email protected]"}
15+
]
1316
authors = [
1417
{ name = "holger krekel" },
1518
]
16-
maintainers = [
17-
{ name = "Ronny Pfannschmidt" , email = "[email protected]"}
19+
requires-python = ">=3.7"
20+
dynamic = [
21+
"version",
1822
]
1923
classifiers = [
2024
"Development Status :: 4 - Beta",
@@ -33,13 +37,10 @@ classifiers = [
3337
"Programming Language :: Python :: 3.10",
3438
"Topic :: Software Development :: Libraries",
3539
]
36-
dynamic = [
37-
"version",
38-
]
39-
4040
[project.urls]
4141
Homepage = "https://github.com/pytest-dev/apipkg"
4242

43+
4344
[tool.hatch.version]
4445
source = "vcs"
4546

0 commit comments

Comments
 (0)