diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb4c1ac0e5..1c10090960 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: exclude: test_data - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.7.0 hooks: - id: ruff args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index b98ec054d7..190eeff05d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ dev = [ "pytest-html", "pytest-metadata", "pytest-json-report", - "ruff==0.6.9", + "ruff==0.7.0", "sphinx", "sphinx-autoapi", "sphinx_copybutton", diff --git a/requirements/uv/all.txt b/requirements/uv/all.txt index 1af83d54d4..9891a496ba 100644 --- a/requirements/uv/all.txt +++ b/requirements/uv/all.txt @@ -472,7 +472,7 @@ rpds-py==0.20.0 # via # jsonschema # referencing -ruff==0.6.9 +ruff==0.7.0 # via bluemira (pyproject.toml) scikit-learn==1.5.2 # via bluemira (pyproject.toml) diff --git a/requirements/uv/develop.txt b/requirements/uv/develop.txt index 3647c10ba5..a00798b158 100644 --- a/requirements/uv/develop.txt +++ b/requirements/uv/develop.txt @@ -339,7 +339,7 @@ rpds-py==0.20.0 # via # jsonschema # referencing -ruff==0.6.9 +ruff==0.7.0 # via bluemira (pyproject.toml) scikit-learn==1.5.2 # via bluemira (pyproject.toml) diff --git a/tests/utilities/test_tools.py b/tests/utilities/test_tools.py index 2177111c50..04fe4f3801 100644 --- a/tests/utilities/test_tools.py +++ b/tests/utilities/test_tools.py @@ -7,6 +7,7 @@ import copy import filecmp import json +import string from pathlib import Path from unittest.mock import patch @@ -64,7 +65,7 @@ def test_is_num(): class TestAsciiStr: def test_asciistr(self): - alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + alphabet = string.ascii_letters for i in range(52): assert asciistr(i + 1) == alphabet[: i + 1]