Skip to content

Commit aaf1e37

Browse files
ci: pre-commit autoupdate (#261)
* ci: pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4) * ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 44deb47 commit aaf1e37

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
args: [--target-version, "3.2"]
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.8.6
24+
rev: v0.9.4
2525
hooks:
2626
- id: ruff
2727
args: [--fix, --exit-non-zero-on-fix]

djangocms_alias/cms_toolbars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def add_aliases_link_to_admin_menu(self):
7474
language = obj.language if hasattr(obj, "language") else get_language_from_request(self.request)
7575
if language is None:
7676
language = get_default_language()
77-
url += f'?{urlencode({"language": language})}'
77+
url += f"?{urlencode({'language': language})}"
7878

7979
admin_menu.add_sideframe_item(
8080
_("Aliases"),

tests/requirements/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run(*args, **kwargs):
6464
print(" ".join(args[0]))
6565
subprocess.run(*args, **kwargs)
6666
except Exception as e:
67-
print(f'Failed {" ".join(args[0])}: {e}')
67+
print(f"Failed {' '.join(args[0])}: {e}")
6868

6969

7070
if __name__ == "__main__":

tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def test_aliases_admin_entry_is_hidden(self):
553553

554554
response = self.client.get(index_url)
555555

556-
unexpected_content = '<a href="/en/admin/djangocms_alias/aliascontent/">' "Alias contents</a>"
556+
unexpected_content = '<a href="/en/admin/djangocms_alias/aliascontent/">Alias contents</a>'
557557
expected_content = '<a href="/en/admin/djangocms_alias/alias/">Aliases</a>'
558558

559559
self.assertEqual(response.status_code, 200)

0 commit comments

Comments
 (0)