From bdea9847b514795cf7905d03744c53808c808621 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jun 2022 14:55:00 +0000 Subject: [PATCH] build(deps-dev): Bump pylint from 2.13.9 to 2.14.1 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.13.9 to 2.14.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.13.9...v2.14.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- dvc/commands/repro.py | 4 +--- dvc/testing/path_info.py | 2 +- pyproject.toml | 4 ++-- setup.cfg | 2 +- tests/func/experiments/test_init.py | 19 +++++++------------ 5 files changed, 12 insertions(+), 19 deletions(-) diff --git a/dvc/commands/repro.py b/dvc/commands/repro.py index b5a95749b..98ef6d41b 100644 --- a/dvc/commands/repro.py +++ b/dvc/commands/repro.py @@ -16,9 +16,7 @@ class CmdRepro(CmdBase): if len(stages) == 0: ui.write(CmdDataStatus.UP_TO_DATE_MSG) else: - ui.write( - "Use `dvc push` to send your updates to " "remote storage." - ) + ui.write("Use `dvc push` to send your updates to remote storage.") if self.args.metrics: from dvc.compare import show_metrics diff --git a/dvc/testing/path_info.py b/dvc/testing/path_info.py index 497d606c7..eb6098fa7 100644 --- a/dvc/testing/path_info.py +++ b/dvc/testing/path_info.py @@ -60,7 +60,7 @@ class PathInfo(pathlib.PurePath, _BasePath): @property def fspath(self): - return self.__fspath__() + return os.fspath(self) url = fspath diff --git a/pyproject.toml b/pyproject.toml index 335e73c5a..8949bfa6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,8 +61,8 @@ load-plugins = ["pylint_pytest", "pylint_plugin_disable"] [tool.pylint.message_control] disable = [ - "format", "refactoring", "spelling", "design", "no-self-use", - "invalid-name", "misplaced-comparison-constant", "duplicate-code", "fixme", + "format", "refactoring", "spelling", "design", + "invalid-name", "duplicate-code", "fixme", "unused-wildcard-import", "cyclic-import", "wrong-import-order", "wrong-import-position", "ungrouped-imports", "multiple-imports", "logging-format-interpolation", "logging-fstring-interpolation", diff --git a/setup.cfg b/setup.cfg index 2fba3e5ac..9f708ce32 100644 --- a/setup.cfg +++ b/setup.cfg @@ -131,7 +131,7 @@ tests = pytest-timeout==2.1.0 filelock==3.7.1 # pylint requirements - pylint==2.13.9 + pylint==2.14.1 # 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, diff --git a/tests/func/experiments/test_init.py b/tests/func/experiments/test_init.py index d72091ae0..4d95c10f5 100644 --- a/tests/func/experiments/test_init.py +++ b/tests/func/experiments/test_init.py @@ -32,8 +32,8 @@ def test_init_simple(tmp_dir, scm, dvc, capsys): assert ( "Creating train stage in dvc.yaml\n\n" "Ensure your experiment command creates metrics.json, plots and models" - '.\nYou can now run your experiment using "dvc exp run".' - ) in out + '.\nYou can now run your experiment using "dvc exp run".' in out + ) assert (tmp_dir / "dvc.yaml").parse() == { "stages": { "train": { @@ -209,12 +209,12 @@ def test_init_interactive_params_validation(tmp_dir, dvc, capsys): "Path to a parameters file [params.yaml, n to omit]: " "'data' is a directory. " "Please retry with an existing parameters file.\n" - "Path to a parameters file [params.yaml, n to omit]:" - ) in err + "Path to a parameters file [params.yaml, n to omit]:" in err + ) def test_init_with_no_defaults_interactive(tmp_dir, dvc): - inp = io.StringIO("script.py\n" "data\n" "n\n" "model\n" "metric\n" "n\n") + inp = io.StringIO("script.py\ndata\nn\nmodel\nmetric\nn\n") init( dvc, defaults={}, @@ -305,18 +305,13 @@ def test_init_default(tmp_dir, scm, dvc, interactive, overrides, inp, capsys): True, {}, io.StringIO( - "python script.py\n" - "script.py\n" - "data\n" - "params.yaml\n" - "models\n" - "y" + "python script.py\nscript.py\ndata\nparams.yaml\nmodels\ny" ), ), ( True, {"cmd": "python script.py"}, - io.StringIO("script.py\n" "data\n" "params.yaml\n" "models\n" "y"), + io.StringIO("script.py\ndata\nparams.yaml\nmodels\ny"), ), ( True,