Skip to content

Commit c2641a8

Browse files
committed
Add pyproject-fmt pre-commit hook
1 parent dd61c2b commit c2641a8

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.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: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
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+
--ds=tests.settings
15+
"""
16+
django_find_project = false
17+
818
[tool.mypy]
919
check_untyped_defs = true
1020
disallow_any_generics = true
@@ -20,11 +30,3 @@ warn_unused_ignores = true
2030
[[tool.mypy.overrides]]
2131
module = "tests.*"
2232
allow_untyped_defs = true
23-
24-
[tool.pytest.ini_options]
25-
addopts = """\
26-
--strict-config
27-
--strict-markers
28-
--ds=tests.settings
29-
"""
30-
django_find_project = false

0 commit comments

Comments
 (0)