From c9af44a87cc5ede27e4d32e8ec15bee8333ae64c Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 17 Nov 2024 16:04:46 +0100 Subject: [PATCH] extend conf --- Makefile | 2 +- psutil/tests/test_testutils.py | 2 +- pyproject.toml | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1de560a6d..8ddb7c42c 100644 --- a/Makefile +++ b/Makefile @@ -193,7 +193,7 @@ lint-all: ## Run all linters # --- not mandatory linters (just run from time to time) pylint: ## Python pylint - @git ls-files '*.py' | xargs $(PYTHON) -m pylint --rcfile=pyproject.toml --jobs=0 + @git ls-files '*.py' | xargs $(PYTHON) -m pylint --rcfile=pyproject.toml --jobs=0 $(ARGS) vulture: ## Find unused code @git ls-files '*.py' | xargs $(PYTHON) -m vulture $(ARGS) diff --git a/psutil/tests/test_testutils.py b/psutil/tests/test_testutils.py index e11c8f783..1c83a94c6 100755 --- a/psutil/tests/test_testutils.py +++ b/psutil/tests/test_testutils.py @@ -317,7 +317,7 @@ def test_bind_unix_socket(self): with contextlib.closing(sock): assert sock.type == socket.SOCK_DGRAM - def tcp_tcp_socketpair(self): + def test_tcp_socketpair(self): addr = ("127.0.0.1", get_free_port()) server, client = tcp_socketpair(socket.AF_INET, addr=addr) with contextlib.closing(server): diff --git a/pyproject.toml b/pyproject.toml index 3e552309e..badafd273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -190,9 +190,14 @@ disable = [ ] [tool.vulture] -ignore_decorators = ["@pytest.fixture"] +ignore_decorators = [ + "@_common.deprecated_method", + "@atexit.register", + "@pytest.fixture", +] exclude = [ "docs/conf.py", + "psutil/_compat.py", "scripts/internal/winmake.py", ]