cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc (#8822)

* cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc.

* remove pylint direcitves

* Apply suggestions from code review

* Update pyproject.toml
This commit is contained in:
skshetry
2023-01-17 08:35:19 +05:45
committed by GitHub
parent d25d26ff74
commit c47c2123fb
26 changed files with 20 additions and 99 deletions
+1 -2
View File
@@ -555,7 +555,6 @@ def temporary_windows_drive(tmp_path_factory):
from ctypes import windll
try:
# pylint: disable=import-error
import win32api
from win32con import DDD_REMOVE_DEFINITION
except ImportError:
@@ -890,7 +889,7 @@ def test_add_preserve_fields(tmp_dir, dvc):
# are the same 260 chars, which makes the test unnecessarily complex
@pytest.mark.skipif(os.name == "nt", reason="unsupported on Windows")
def test_add_long_fname(tmp_dir, dvc):
name_max = os.pathconf(tmp_dir, "PC_NAME_MAX") # pylint: disable=no-member
name_max = os.pathconf(tmp_dir, "PC_NAME_MAX")
name = "a" * name_max
tmp_dir.gen({"data": {name: "foo"}})