mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
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:
@@ -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"}})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user