Keep pre-commit inline with hacking and fix whitespace
The flake8 hook for pre-commit installs its own flake8 which is not what hacking is pinned to. This results in a bunch of errors. By doing a local hook we can cause these to be the same. There are flake8 exclusions in tox.ini that need to be used in pre-commit. Also we should exclude svg files from the whitespace modifications, because who cares. Once those are fixed, running pre-commit -a fixes some whitespace issues. While the normal use isn't to run -a - if someone does make a patch that touches any of these they'll get erroneous unrelated errors compared to their lower work - so fix all of the existing issues, which are mostly space-at-end-of-line issues it seems. Change-Id: I78e753492e99c03b30a0a691db3bd75ee3d289c9
This commit is contained in:
committed by
Stephen Finucane
parent
2e7a0088c2
commit
e7cc5efd20
@@ -103,7 +103,7 @@ Response
|
||||
- name: image_name
|
||||
- minRam: minRam_body
|
||||
- minDisk: minDisk_body
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- created: created
|
||||
- updated: updated
|
||||
- status: image_status
|
||||
@@ -147,7 +147,7 @@ Response
|
||||
- name: image_name
|
||||
- minRam: minRam_body
|
||||
- minDisk: minDisk_body
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- created: created
|
||||
- updated: updated
|
||||
- status: image_status
|
||||
@@ -208,7 +208,7 @@ Response
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
|
||||
**Example List Image Metadata Details: JSON response**
|
||||
|
||||
@@ -233,7 +233,7 @@ Request
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- image_id: image_id
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
|
||||
**Example Create Image Metadata: JSON request**
|
||||
|
||||
@@ -245,7 +245,7 @@ Response
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
|
||||
**Example Create Image Metadata: JSON response**
|
||||
|
||||
@@ -270,7 +270,7 @@ Request
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- image_id: image_id
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
|
||||
**Example Update Image Metadata: JSON request**
|
||||
|
||||
@@ -282,7 +282,7 @@ Response
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
|
||||
**Example Update Image Metadata: JSON response**
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ can change these permissions through the ``policy.json`` file.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||
itemNotFound(404)
|
||||
|
||||
Request
|
||||
@@ -131,7 +131,7 @@ can change these permissions through the ``policy.json`` file.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||
itemNotFound(404)
|
||||
|
||||
Request
|
||||
|
||||
@@ -50,7 +50,7 @@ Response
|
||||
- displayDescription: display_description
|
||||
- displayName: display_name
|
||||
- id: volume_id_resp
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- size: size
|
||||
- snapshotId: snapshot_id
|
||||
- status: volume_status
|
||||
@@ -110,7 +110,7 @@ Response
|
||||
- displayName: display_name
|
||||
- displayDescription: display_description
|
||||
- id: volume_id_resp
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- size: size
|
||||
- snapshotId: snapshot_id
|
||||
- status: volume_status
|
||||
@@ -158,7 +158,7 @@ Response
|
||||
- displayName: display_name
|
||||
- displayDescription: display_description
|
||||
- id: volume_id_resp
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- size: size
|
||||
- snapshotId: snapshot_id
|
||||
- status: volume_status
|
||||
@@ -205,7 +205,7 @@ Response
|
||||
- displayName: display_name
|
||||
- displayDescription: display_description
|
||||
- id: volume_id_resp
|
||||
- metadata: metadata_object
|
||||
- metadata: metadata_object
|
||||
- size: size
|
||||
- snapshotId: snapshot_id
|
||||
- status: volume_status
|
||||
|
||||
Reference in New Issue
Block a user