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_utils/excutils.py b/oslo_utils/excutils.py index 94a66552..f13bc175 100644 --- a/oslo_utils/excutils.py +++ b/oslo_utils/excutils.py @@ -138,7 +138,7 @@ def raise_with_cause(exc_cls, message, *args, **kwargs): finally: # Leave no references around (especially with regards to # tracebacks and any variables that it retains internally). - del(exc_type, exc, exc_tb) + del (exc_type, exc, exc_tb) raise exc_cls(message, *args, **kwargs) from kwargs.get('cause') diff --git a/test-requirements.txt b/test-requirements.txt index 6a284486..58fce9c4 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,8 +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 eventlet>=0.18.2,!=0.18.3,!=0.20.1,!=0.21.0,!=0.23.0 # MIT fixtures>=3.0.0 # Apache-2.0/BSD