update ruff and enable flake8-logging-format and flake8-type-checking (#8894)

* update ruff and enable flake8-logging-format and flake8-type-checking check

* Update dvc/external_repo.py

* Update dvc/fs/dvc.py

* Update dvc/repo/experiments/__init__.py

* Update dvc/repo/experiments/queue/base.py

* Update pyproject.toml
This commit is contained in:
skshetry
2023-01-27 19:14:19 +05:45
committed by GitHub
parent 6f0e8a8db5
commit a137b2a6bc
52 changed files with 222 additions and 210 deletions
+6 -3
View File
@@ -1,5 +1,8 @@
from typing import Any, Dict
from unittest.mock import ANY, Mock
from typing import TYPE_CHECKING, Any, Dict
from unittest.mock import ANY
if TYPE_CHECKING:
from unittest.mock import Mock
def issubset(subset: Dict, superset: Dict) -> bool:
@@ -7,7 +10,7 @@ def issubset(subset: Dict, superset: Dict) -> bool:
return True
def called_once_with_subset(m: Mock, *args: Any, **kwargs: Any) -> bool:
def called_once_with_subset(m: "Mock", *args: Any, **kwargs: Any) -> bool:
m.assert_called_once()
m_args, m_kwargs = m.call_args