[CHANGE] Project file linter

We don't use setup.cfg anymore, so we should lint the pyproject.toml file now.
This commit is contained in:
Peter Pfeufer
2024-03-28 20:33:16 +01:00
parent fc303b1b0a
commit 7c7c1abf7c
2 changed files with 45 additions and 37 deletions

View File

@@ -78,8 +78,13 @@ repos:
- id: django-upgrade
args: [--target-version=4.2]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
hooks:
- id: setup-cfg-fmt
args: [ --include-version-classifiers ]
- id: pyproject-fmt
name: pyproject.toml formatter
description: "Format the pyproject.toml file."
args:
- --indent=4
additional_dependencies:
- tox==4.14.2 # https://github.com/tox-dev/tox/releases/latest