summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Mooney <work@seanmooney.info>2022-05-23 14:37:10 +0000
committerSean Mooney <work@seanmooney.info>2022-05-23 14:39:56 +0000
commitcde68026eb32ff25c45de895e5dc3608096ed873 (patch)
tree685312ef7578b2c9b6055b0c3287d877ed8a2d46
parentf611370555c994dd685b680a4ef09dbd57b697b2 (diff)
downloadoslo-messaging-cde68026eb32ff25c45de895e5dc3608096ed873.tar.gz
update hacking pin to support flake8 3.8.3
this change updates the max version of hacking to 4.1.0 to allow pre-commit to work with the flake 3.8.3 release and correct one new error that was raised as a result. Change-Id: I3a0242208f411b430db0e7429e2c773f45b3d301
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--oslo_messaging/tests/test_transport.py2
-rw-r--r--test-requirements.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 08aef91..50d8dea 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>=3.0.1,<=4.1.0
language: python
entry: flake8
files: '^.*\.py$'
diff --git a/oslo_messaging/tests/test_transport.py b/oslo_messaging/tests/test_transport.py
index 31fec16..cb12c16 100644
--- a/oslo_messaging/tests/test_transport.py
+++ b/oslo_messaging/tests/test_transport.py
@@ -115,7 +115,7 @@ class GetTransportTestCase(test_utils.BaseTestCase):
self.assertIsNotNone(transport_)
self.assertIs(transport_.conf, self.conf)
self.assertIs(transport_._driver, drvr)
- self.assertTrue(isinstance(transport_, transport.RPCTransport))
+ self.assertIsInstance(transport_, transport.RPCTransport)
driver.DriverManager.assert_called_once_with('oslo.messaging.drivers',
self.expect['backend'],
diff --git a/test-requirements.txt b/test-requirements.txt
index 983c1c9..3a7c44f 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
# Hacking already pins down pep8, pyflakes and flake8
-hacking>=3.0.1,<3.1.0 # Apache-2.0
+hacking>=3.0.1,<=4.1.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0