[pre-commit.ci] pre-commit autoupdate (#10786)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2025-06-26 18:49:25 +05:45
committed by GitHub
parent f3836ab29a
commit 5bec7d1bb9
7 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ repos:
- id: sort-simple-yaml - id: sort-simple-yaml
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.11.13' rev: 'v0.12.0'
hooks: hooks:
- id: ruff-check - id: ruff-check
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]
+1 -1
View File
@@ -155,7 +155,7 @@ class Value(Node):
PRIMITIVES = (int, float, str, bytes, bool) PRIMITIVES = (int, float, str, bytes, bool)
class Container(Node, ABC): class Container(Node, ABC): # noqa: PLW1641
meta: Meta meta: Meta
data: Union[list, dict] data: Union[list, dict]
_key_transform = staticmethod(identity) _key_transform = staticmethod(identity)
+4 -1
View File
@@ -149,7 +149,10 @@ def checkout( # noqa: C901
def checkout_onerror(src_path, dest_path, _exc): def checkout_onerror(src_path, dest_path, _exc):
logger.debug( logger.debug(
"failed to create '%s' from '%s'", dest_path, src_path, exc_info=True "failed to create '%s' from '%s'",
dest_path,
src_path,
exc_info=True, # noqa: LOG014
) )
for out_path in out_paths: for out_path in out_paths:
+1 -1
View File
@@ -38,7 +38,7 @@ logger = logger.getChild(__name__)
@dataclass(frozen=True) @dataclass(frozen=True)
class QueueEntry: class QueueEntry: # noqa: PLW1641
dvc_root: str dvc_root: str
scm_root: str scm_root: str
stash_ref: str stash_ref: str
+1 -1
View File
@@ -32,7 +32,7 @@ logger = logger.getChild(__name__)
def onerror_collect(result: dict, exception: Exception, *args, **kwargs): def onerror_collect(result: dict, exception: Exception, *args, **kwargs):
logger.debug("", exc_info=True) logger.debug("", exc_info=True) # noqa: LOG014
result["error"] = exception result["error"] = exception
+1 -1
View File
@@ -267,7 +267,7 @@ show-fixes = true
[tool.ruff.lint] [tool.ruff.lint]
ignore = [ ignore = [
"N818", "S101", "A005", "PT007", "RET502", "RET503", "SIM105", "SIM108", "SIM117", "N818", "S101", "A005", "PT007", "RET502", "RET503", "SIM105", "SIM108", "SIM117",
"TRY003", "TRY300", "PERF203", "PLR2004", "PLW2901", "LOG007", "TRY003", "TRY300", "PERF203", "PLC0415", "PLR2004", "PLW2901", "LOG007",
] ]
select = [ select = [
"F", "E", "W", "C90", "I", "N", "UP", "YTT", "ASYNC", "S", "BLE", "B", "A", "C4", "DTZ", "T10", "F", "E", "W", "C90", "I", "N", "UP", "YTT", "ASYNC", "S", "BLE", "B", "A", "C4", "DTZ", "T10",
+1 -1
View File
@@ -59,7 +59,7 @@ def console_width(console, width):
console._width = con_width console._width = con_width
class ANY: class ANY: # noqa: PLW1641
def __init__(self, expected_type): def __init__(self, expected_type):
self.expected_type = expected_type self.expected_type = expected_type