mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-13 07:18:25 +01:00
build(deps-dev): Bump pylint from 2.12.2 to 2.13.5 (#7518)
build(deps-dev): Bump pylint from 2.12.2 to 2.13.5
This commit is contained in:
+2
-4
@@ -26,8 +26,7 @@ class LocalFileSystem(FileSystem):
|
||||
super().__init__(**config)
|
||||
self.fs = LocalFS()
|
||||
|
||||
@staticmethod
|
||||
def open(path, mode="r", encoding=None, **kwargs):
|
||||
def open(self, path, mode="r", encoding=None, **kwargs):
|
||||
return open(path, mode=mode, encoding=encoding)
|
||||
|
||||
def exists(self, path) -> bool:
|
||||
@@ -107,8 +106,7 @@ class LocalFileSystem(FileSystem):
|
||||
self.remove(tmp_info)
|
||||
raise
|
||||
|
||||
@staticmethod
|
||||
def symlink(from_info, to_info):
|
||||
def symlink(self, from_info, to_info):
|
||||
System.symlink(from_info, to_info)
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -34,6 +34,5 @@ def update(
|
||||
stage.update(rev, to_remote=to_remote, remote=remote, jobs=jobs)
|
||||
dvcfile = Dvcfile(self, stage.path)
|
||||
dvcfile.dump(stage)
|
||||
stages.add(stage)
|
||||
|
||||
return list(stages)
|
||||
|
||||
+5
-1
@@ -51,7 +51,11 @@ class Table(RichTable):
|
||||
return widths
|
||||
|
||||
def _collapse_widths( # type: ignore[override]
|
||||
self, widths: List[int], wrapable: List[bool], max_width: int
|
||||
# pylint: disable=arguments-differ
|
||||
self,
|
||||
widths: List[int],
|
||||
wrapable: List[bool],
|
||||
max_width: int,
|
||||
) -> List[int]:
|
||||
"""Collapse columns right-to-left if possible to fit table into
|
||||
max_width.
|
||||
|
||||
@@ -65,6 +65,7 @@ disable = [
|
||||
"logging-format-interpolation", "logging-fstring-interpolation",
|
||||
"missing-function-docstring", "missing-module-docstring",
|
||||
"missing-class-docstring", "raise-missing-from", "import-outside-toplevel",
|
||||
"cannot-enumerate-pytest-fixtures",
|
||||
]
|
||||
enable = ["c-extension-no-member", "no-else-return"]
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ tests =
|
||||
pytest-timeout==2.1.0
|
||||
filelock==3.6.0
|
||||
# pylint requirements
|
||||
pylint==2.12.2
|
||||
pylint==2.13.5
|
||||
# we use this to suppress pytest-related false positives in our tests.
|
||||
pylint-pytest==1.1.2
|
||||
# we use this to suppress some messages in tests, eg: foo/bar naming,
|
||||
|
||||
@@ -95,6 +95,8 @@ class TestColorFormatter:
|
||||
|
||||
assert expected == formatter.format(caplog.records[0])
|
||||
|
||||
# pylint: disable=used-before-assignment
|
||||
|
||||
def test_exception_under_verbose(self, caplog, dt):
|
||||
with caplog.at_level(logging.DEBUG, logger="dvc"):
|
||||
try:
|
||||
@@ -191,6 +193,8 @@ class TestColorFormatter:
|
||||
assert "Exception: first" in stack_trace
|
||||
assert "dvc.exceptions.DvcException: second" in stack_trace
|
||||
|
||||
# pylint: enable=used-before-assignment
|
||||
|
||||
def test_progress_awareness(self, mocker, capsys, caplog):
|
||||
from dvc.progress import Tqdm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user