From 81ab67953af25604ca2c99f40728ef08bbe4c718 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Fri, 10 Feb 2023 16:21:36 +0100 Subject: [PATCH] Upgrade syntax for `Python >= 3.8`. --- .pre-commit-config.yaml | 1 + tests/test_fixtures.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e61055..812b3d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: rev: v3.3.1 hooks: - id: pyupgrade + args: ["--py38-plus"] - repo: https://github.com/adamchainz/django-upgrade rev: 1.12.0 diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py index 4a28277..9e1768e 100644 --- a/tests/test_fixtures.py +++ b/tests/test_fixtures.py @@ -12,7 +12,7 @@ class AdminInterfaceFixturesTestCase(TestCase): pass def __load_theme(self, theme_name): - call_command("loaddata", "admin_interface_theme_{}.json".format(theme_name)) + call_command("loaddata", f"admin_interface_theme_{theme_name}.json") def test_import_initial_data(self): call_command("loaddata", "initial_data.json")