From f5c4096092c1f9da989e455f383499866faf4764 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 26 Jan 2024 01:11:47 +0900 Subject: [PATCH] Bump hacking (again) The previous attempt did not update the version in pre commit config so the old version is still used by pep8 target. Change-Id: I62048df659f4bc35f714de824aadfe9306e81c71 --- .pre-commit-config.yaml | 2 +- oslo_config/tests/test_sources.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08aef91b..9b908c6d 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_config/tests/test_sources.py b/oslo_config/tests/test_sources.py index 2da73da1..7c1e8580 100644 --- a/oslo_config/tests/test_sources.py +++ b/oslo_config/tests/test_sources.py @@ -308,8 +308,8 @@ class URISourceTestCase(base.BaseTestCase): # testing driver loading self.assertEqual(self.conf._sources, []) self.conf._load_alternative_sources() - self.assertEqual(type(self.conf._sources[0]), - _uri.URIConfigurationSource) + self.assertIsInstance(self.conf._sources[0], + _uri.URIConfigurationSource) source = self.conf._open_source_from_opt_group(group)