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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user