From da38b473bdaad65a96f12d18cf090af3ae53aedf Mon Sep 17 00:00:00 2001 From: E3E Date: Tue, 20 Feb 2024 16:04:06 -0500 Subject: [PATCH] add pylint ruleset to ruff Signed-off-by: E3E --- pyproject.toml | 3 ++- tuf/ngclient/__init__.py | 2 +- tuf/repository/__init__.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 82012869..da3ecb88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,8 +87,9 @@ select = [ "F", # pyflakes "I", # isort "N", # pep8-naming + "PL", # pylint ] -ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104","D406","D105","D411","D401","D200","D203"] +ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104","D406","D105","D411","D401","D200","D203", "PLR0913", "PLR2004"] [tool.ruff.lint.per-file-ignores] "tests/*" = ["D", "E"] diff --git a/tuf/ngclient/__init__.py b/tuf/ngclient/__init__.py index f4d8ed92..95e4e88c 100644 --- a/tuf/ngclient/__init__.py +++ b/tuf/ngclient/__init__.py @@ -15,7 +15,7 @@ from tuf.ngclient.fetcher import FetcherInterface from tuf.ngclient.updater import Updater -__all__ = [ +__all__ = [ # noqa: PLE0604 FetcherInterface.__name__, RequestsFetcher.__name__, TargetFile.__name__, diff --git a/tuf/repository/__init__.py b/tuf/repository/__init__.py index 5c01deee..4c403297 100644 --- a/tuf/repository/__init__.py +++ b/tuf/repository/__init__.py @@ -10,4 +10,4 @@ The repository module is not considered part of the stable python-tuf API yet. """ -from tuf.repository._repository import AbortEdit, Repository # noqa: F401, I001 +from tuf.repository._repository import AbortEdit, Repository # noqa: F401