From 1a9f5d3aa84a1ccffb709793f68ce76d758d23bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:25:39 +0545 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#10362) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.2...v0.3.3) * fix lint issue --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Saugat Pachhai (सौगात) --- .pre-commit-config.yaml | 2 +- dvc/repo/experiments/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc26637d1..5e852dd4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.3.2' + rev: 'v0.3.3' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/dvc/repo/experiments/utils.py b/dvc/repo/experiments/utils.py index d3dcb276b..14236ee42 100644 --- a/dvc/repo/experiments/utils.py +++ b/dvc/repo/experiments/utils.py @@ -287,7 +287,7 @@ def gen_random_name(): # fmt: on # Use custom random generator to make sure that names are random even if # global random seed is set (common for ML pipelines). - random_generator = random.Random() + random_generator = random.Random() # noqa: S311 adjective = random_generator.choice(ADJECTIVES) noun = random_generator.choice(NOUNS) return f"{adjective}-{noun}"