Skip to content

Commit

Permalink
Add pyproject-fmt pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Feb 15, 2023
1 parent ca24318 commit 332cf1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ repos:
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.9.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
]

[tool.black]
target-version = ['py37']

[tool.pytest.ini_options]
addopts = """\
--strict-config
--strict-markers
"""

[tool.mypy]
mypy_path = "src/"
namespace_packages = false
Expand All @@ -15,9 +23,3 @@ warn_unreachable = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_untyped_defs = true

[tool.pytest.ini_options]
addopts = """\
--strict-config
--strict-markers
"""

0 comments on commit 332cf1f

Please sign in to comment.