Add flake8-pyproject

Without it, `flake8` cannot read its config in pyproject.toml.
This commit is contained in:
Alexander Hess 2026-11-25 16:45:56 +01:00
commit 4495da2b60
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -126,6 +126,7 @@ def lint(session):
'flake8', 'flake8',
'flake8-annotations', 'flake8-annotations',
'flake8-black', 'flake8-black',
'flake8-pyproject',
'flake8-pytest-style', 'flake8-pytest-style',
'mypy', 'mypy',
) )
@ -133,6 +134,8 @@ def lint(session):
# Interpret extra arguments as locations of source files. # Interpret extra arguments as locations of source files.
locations = session.posargs or SRC_LOCATIONS locations = session.posargs or SRC_LOCATIONS
# `flake8` reads the "[tool.flake8]" section in pyproject.toml
# only with the `flake8-pyproject` plugin installed
session.run('flake8', '--version') session.run('flake8', '--version')
session.run('flake8', *locations) session.run('flake8', *locations)