diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d02bdbdfca..4c7005b1ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: mixed-line-ending @@ -19,7 +19,7 @@ repos: - id: check-yaml files: .*\.(yaml|yml)$ - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.13 + rev: v1.5.4 hooks: - id: remove-tabs exclude: '.*\.(svg)$' @@ -28,13 +28,13 @@ repos: - id: flake8 name: flake8 additional_dependencies: - - hacking>=3.1.0,<3.2.0 + - hacking~=6.0.1 language: python entry: flake8 files: '^.*\.py$' exclude: '^(doc|releasenotes|tools)/.*$' - repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v1.6.0 + rev: v2.0.4 hooks: - id: autopep8 files: '^.*\.py$' diff --git a/nova/tests/unit/api/openstack/compute/test_server_topology.py b/nova/tests/unit/api/openstack/compute/test_server_topology.py index 63d5f7a5c1..978821fa15 100644 --- a/nova/tests/unit/api/openstack/compute/test_server_topology.py +++ b/nova/tests/unit/api/openstack/compute/test_server_topology.py @@ -73,7 +73,7 @@ class ServerTopologyTestV278(test.NoDBTestCase): 'siblings': [], 'vcpu_set': set([0, 1]), 'host_node': 0, - 'cpu_pinning':{}}], + 'cpu_pinning': {}}], 'pagesize_kb': 4} inst = objects.instance.Instance(uuid=self.uuid, host='123', diff --git a/nova/tests/unit/policies/test_rescue.py b/nova/tests/unit/policies/test_rescue.py index 2b8f94c5e3..cc62a8f7a3 100644 --- a/nova/tests/unit/policies/test_rescue.py +++ b/nova/tests/unit/policies/test_rescue.py @@ -102,7 +102,6 @@ class RescueServerPolicyTest(base.BasePolicyTest): class RescueServerNoLegacyNoScopePolicyTest(RescueServerPolicyTest): """Test rescue/unrescue server APIs policies with no legacy deprecated rules and no scope checks which means new defaults only. - """ without_deprecated_rules = True