Enable PD in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 22:11:10 +01:00
commit 95f08bc96d
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -111,6 +111,7 @@ dev = [
"flake8-todos (>=0.3.1,<0.4.0)",
"flake8-unused-arguments (>=0.0.14,<0.1.0)",
"mypy (>=2.4.1,<3.0.0)",
"pandas-vet (>=2023.8.2)",
"pep8-naming (>=0.15.1,<0.16.0)",
"pydoclint[flake8] (>=0.12.0,<0.13.0)",
"ruff (>=0.17.6,<0.18.0)",
@ -239,6 +240,8 @@ select = [
"T00",
# flake8-unused-arguments => declared function arguments must be used
"U100",
# pandas-vet => Idiomatic `pandas`
"PD0",
# pep8-naming => PEP8 naming conventions
"N8",
# pydoclint => docstring matches implementation
@ -272,6 +275,8 @@ extend-ignore = [
# Comply with black's style.
# Source: https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
"E203", "W503",
# Every `.add()` looks like `pandas` to this rule (`ruff` omits it).
"PD005",
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`.
"PT023",
# `ruff`'s RET504 does this better, as it allows statements in between.
@ -501,6 +506,8 @@ select = [
"ISC",
# pep8-naming => PEP8 naming conventions
"N",
# pandas-vet => Idiomatic `pandas`
"PD",
# flake8-pytest-style => enforce a consistent style with pytest
"PT",
# flake8-quotes => use double quotes everywhere