Skip to content

Commit 63f35f1

Browse files
committed
Add pyproject-fmt pre-commit hook
1 parent b4b52a4 commit 63f35f1

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ repos:
1313
- id: check-toml
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
16+
- repo: https://github.com/tox-dev/pyproject-fmt
17+
rev: 0.9.1
18+
hooks:
19+
- id: pyproject-fmt
1620
- repo: https://github.com/asottile/setup-cfg-fmt
1721
rev: v2.2.0
1822
hooks:

pyproject.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
[build-system]
2-
requires = ["setuptools"]
32
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools",
5+
]
46

57
[tool.black]
68
target-version = ['py37']
79

10+
[tool.pytest.ini_options]
11+
addopts = """\
12+
--strict-config
13+
--strict-markers
14+
"""
15+
816
[tool.mypy]
917
mypy_path = "src/"
1018
namespace_packages = false
@@ -15,9 +23,3 @@ warn_unreachable = true
1523
[[tool.mypy.overrides]]
1624
module = "tests.*"
1725
allow_untyped_defs = true
18-
19-
[tool.pytest.ini_options]
20-
addopts = """\
21-
--strict-config
22-
--strict-markers
23-
"""

0 commit comments

Comments
 (0)