Skip to content

Commit 5033ef0

Browse files
authored
Add pyproject-fmt (#50)
Committed via https://github.com/asottile/all-repos
1 parent d744c10 commit 5033ef0

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ repos:
6060
- flake8-unused-arguments==0.0.13
6161
- flake8-noqa==1.3
6262
- pep8-naming==0.13.3
63+
- repo: https://github.com/tox-dev/pyproject-fmt
64+
rev: "0.9.2"
65+
hooks:
66+
- id: pyproject-fmt

pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
[build-system]
2-
requires = ["setuptools>=67.1", "setuptools_scm>=7.1"]
32
build-backend = 'setuptools.build_meta'
4-
5-
[tool.black]
6-
line-length = 120
7-
8-
[tool.isort]
9-
profile = "black"
10-
known_first_party = ["pytest_print"]
3+
requires = [
4+
"setuptools>=67.1",
5+
"setuptools_scm>=7.1",
6+
]
117

128
[tool.setuptools_scm]
139
write_to = "src/pytest_print/version.py"
@@ -16,3 +12,10 @@ write_to_template = """
1612
1713
__version__ = "{version}"
1814
"""
15+
16+
[tool.black]
17+
line-length = 120
18+
19+
[tool.isort]
20+
profile = "black"
21+
known_first_party = ["pytest_print"]

0 commit comments

Comments
 (0)