Enable PD in flake8 and ruff
This commit is contained in:
parent
f266adad45
commit
95f08bc96d
1 changed files with 36 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue