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
@@ -138,7 +138,7 @@ def test_remove_files_when_checkout(tmp_dir, dvc, scm):
class TestCheckoutCleanWorkingDir:
def test(self, mocker, tmp_dir, dvc): # pylint: disable=unused-argument
def test(self, mocker, tmp_dir, dvc):
mock_prompt = mocker.patch("dvc.prompt.confirm", return_value=True)
(stage,) = tmp_dir.dvc_gen("data", {"foo": "foo"})
@@ -308,7 +308,6 @@ def test_checkout_hook(mocker, tmp_dir, dvc):
def test_checkout_suggest_git(tmp_dir, dvc, scm):
# pylint: disable=no-member
with pytest.raises(CheckoutErrorSuggestGit) as e:
dvc.checkout(targets="gitbranch")
assert isinstance(e.value.__cause__, NoOutputOrStageError)