From ee6a1a9eec12363fba9d5e157bb4a1fc41c4f66f Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 15 Feb 2023 21:56:28 +0000 Subject: [PATCH] Add pyproject-fmt pre-commit hook --- .pre-commit-config.yaml | 4 ++++ pyproject.toml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7a50881..5e20c849 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 99efa39d..9fb6e9fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,8 @@ [build-system] -requires = ["setuptools"] build-backend = "setuptools.build_meta" +requires = [ + "setuptools", +] [tool.black] target-version = ['py37']