Skip to content

Commit 0fd0736

Browse files
committed
deps: get rid of pylint-pytest, bump pylint, silence warnings
1 parent 235122b commit 0fd0736

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Diff for: dvc_ssh/tests/fixtures.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=redefined-outer-name
2+
13
import os
24

35
import pytest
@@ -6,12 +8,14 @@
68

79

810
@pytest.fixture(scope="session")
9-
def docker_compose_file(pytestconfig):
11+
def docker_compose_file(pytestconfig): # pylint: disable=unused-argument
1012
return os.path.join(os.path.dirname(__file__), "docker-compose.yml")
1113

1214

1315
@pytest.fixture(scope="session")
14-
def ssh_server(docker_compose, docker_services):
16+
def ssh_server( # pylint: disable=unused-argument
17+
docker_compose, docker_services
18+
):
1519
import asyncssh
1620
from sshfs import SSHFileSystem
1721

Diff for: pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ files = ["dvc_ssh"]
5454
[tool.pylint.master]
5555
extension-pkg-whitelist = ["pygit2"]
5656
init-hook = "import sys; sys.path.append(str('tests'))"
57-
load-plugins = ["pylint_pytest"]
5857

5958
[tool.pylint.message_control]
6059
disable = [
61-
"format", "refactoring", "spelling", "design", "no-self-use",
62-
"invalid-name", "misplaced-comparison-constant", "duplicate-code", "fixme",
60+
"format", "refactoring", "spelling", "design",
61+
"invalid-name", "duplicate-code", "fixme",
6362
"unused-wildcard-import", "cyclic-import", "wrong-import-order",
6463
"wrong-import-position", "ungrouped-imports", "multiple-imports",
6564
"logging-format-interpolation", "logging-fstring-interpolation",

Diff for: setup.cfg

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ tests =
5555
collective.checkdocs==0.2
5656
pydocstyle==6.1.1
5757
# pylint requirements
58-
pylint==2.11.1
59-
# we use this to suppress pytest-related false positives in our tests.
60-
pylint-pytest==1.1.2
58+
pylint==2.15.9
6159
# we use this to suppress some messages in tests, eg: foo/bar naming,
6260
# and, protected method calls in our tests
6361
pylint-plugin-utils==0.6

0 commit comments

Comments
 (0)