Skip to content

Commit

Permalink
extend conf
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Nov 17, 2024
1 parent 2dceb32 commit c9af44a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit c9af44a

Please sign in to comment.