Skip to content

Commit 5bec7d1

Browse files
[pre-commit.ci] pre-commit autoupdate (#10786)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f3836ab commit 5bec7d1

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: sort-simple-yaml
2323
- id: trailing-whitespace
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: 'v0.11.13'
25+
rev: 'v0.12.0'
2626
hooks:
2727
- id: ruff-check
2828
args: [--fix, --exit-non-zero-on-fix]

dvc/parsing/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def value(self):
155155
PRIMITIVES = (int, float, str, bytes, bool)
156156

157157

158-
class Container(Node, ABC):
158+
class Container(Node, ABC): # noqa: PLW1641
159159
meta: Meta
160160
data: Union[list, dict]
161161
_key_transform = staticmethod(identity)

dvc/repo/checkout.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ def onerror(target, exc):
149149

150150
def checkout_onerror(src_path, dest_path, _exc):
151151
logger.debug(
152-
"failed to create '%s' from '%s'", dest_path, src_path, exc_info=True
152+
"failed to create '%s' from '%s'",
153+
dest_path,
154+
src_path,
155+
exc_info=True, # noqa: LOG014
153156
)
154157

155158
for out_path in out_paths:

dvc/repo/experiments/queue/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939

4040
@dataclass(frozen=True)
41-
class QueueEntry:
41+
class QueueEntry: # noqa: PLW1641
4242
dvc_root: str
4343
scm_root: str
4444
stash_ref: str

dvc/repo/plots/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
def onerror_collect(result: dict, exception: Exception, *args, **kwargs):
35-
logger.debug("", exc_info=True)
35+
logger.debug("", exc_info=True) # noqa: LOG014
3636
result["error"] = exception
3737

3838

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ show-fixes = true
267267
[tool.ruff.lint]
268268
ignore = [
269269
"N818", "S101", "A005", "PT007", "RET502", "RET503", "SIM105", "SIM108", "SIM117",
270-
"TRY003", "TRY300", "PERF203", "PLR2004", "PLW2901", "LOG007",
270+
"TRY003", "TRY300", "PERF203", "PLC0415", "PLR2004", "PLW2901", "LOG007",
271271
]
272272
select = [
273273
"F", "E", "W", "C90", "I", "N", "UP", "YTT", "ASYNC", "S", "BLE", "B", "A", "C4", "DTZ", "T10",

tests/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def console_width(console, width):
5959
console._width = con_width
6060

6161

62-
class ANY:
62+
class ANY: # noqa: PLW1641
6363
def __init__(self, expected_type):
6464
self.expected_type = expected_type
6565

0 commit comments

Comments
 (0)