Skip to content

Commit e9c0a99

Browse files
[pre-commit.ci] pre-commit autoupdate (#10975)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3c71fdb commit e9c0a99

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
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.14.11'
25+
rev: 'v0.14.13'
2626
hooks:
2727
- id: ruff-check
2828
args: [--fix, --exit-non-zero-on-fix]

dvc/analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _git_remote_path_hash(scm: Optional["Base"]) -> Optional[str]:
147147
path = _parse_git_remote_path(remote_url)
148148
h = hashlib.md5(path.encode("utf-8"), usedforsecurity=False) # for FIPS
149149
return h.hexdigest()
150-
except Exception: # noqa: BLE001
150+
except Exception:
151151
logger.debug("Failed to get git remote path", exc_info=True)
152152
return None
153153

dvc/repo/experiments/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def collect_rev(
5858
if not (rev == "workspace" or param_deps or data.contains_error):
5959
cache.put(data, force=True)
6060
return ExpState(rev=rev, data=data)
61-
except Exception as exc: # noqa: BLE001
61+
except Exception as exc:
6262
logger.debug("", exc_info=True)
6363
error = SerializableError(str(exc), type(exc).__name__)
6464
return ExpState(rev=rev, error=error)

dvc/repo/metrics/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def try_expand_paths(fs: "FileSystem", paths: Iterable[str]) -> Iterator[str]:
123123
if fs.isdir(path):
124124
yield from fs.find(path)
125125
continue
126-
except Exception as e: # noqa: BLE001
126+
except Exception as e:
127127
logger.debug(
128128
"failed to expand %r: %s",
129129
path,

tests/unit/test_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_exc_info_on_other_record_types(self, caplog, dt):
113113
with caplog.at_level(logging.DEBUG, logger="dvc"):
114114
try:
115115
raise Exception("description")
116-
except Exception: # noqa: BLE001
116+
except Exception:
117117
stack_trace = traceback.format_exc()
118118
logger.debug("", exc_info=True)
119119

0 commit comments

Comments
 (0)