From 106ad5f3747b96dc798871d41b2a59d7006773b4 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 25 Jan 2024 12:09:51 +0900 Subject: [PATCH] Bump hacking hacking 3.0.x is too old. Change-Id: Id9565ec8a49d6482b6de1527d6ab190eb9594372 --- .pre-commit-config.yaml | 2 +- oslo_i18n/tests/test_message.py | 2 +- requirements.txt | 4 ---- test-requirements.txt | 5 +---- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08aef91..9b908c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: flake8 name: flake8 additional_dependencies: - - hacking>=3.0.1,<3.1.0 + - hacking>=6.1.0,<6.2.0 language: python entry: flake8 files: '^.*\.py$' diff --git a/oslo_i18n/tests/test_message.py b/oslo_i18n/tests/test_message.py index 52956dc..9c3f016 100644 --- a/oslo_i18n/tests/test_message.py +++ b/oslo_i18n/tests/test_message.py @@ -197,7 +197,7 @@ class MessageTestCase(test_base.BaseTestCase): results.append(_message.Message(msgid) % param) for message, result in zip(messages, results): - self.assertEqual(type(result), _message.Message) + self.assertIsInstance(result, _message.Message) self.assertEqual(message, result.translation()) # simulate writing out as string diff --git a/requirements.txt b/requirements.txt index 6de9f4e..7deef88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. - pbr!=2.1.0,>=2.0.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index a936058..124bc76 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,4 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. -hacking>=3.0.1,<3.1.0 # Apache-2.0 +hacking>=6.1.0,<6.2.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0