Address pre-commit issues

We'd like to use pre-commit as our 'pep8' target. Before we do that, we
need to address some issues that have crept in over the time since
pre-commit was first added.

Change-Id: I3bb383a00a44007eaa241e037e38aea16bd517b2
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2023-05-10 10:47:17 +01:00
parent 43f0e1090a
commit 379db31ea2
8 changed files with 52 additions and 53 deletions

@ -1,37 +1,37 @@
catalog,catalog show,"List service catalog, possibly filtered by service." catalog,catalog show,"List service catalog, possibly filtered by service."
ec2-credentials-create,ec2 credentials create,Create EC2-compatible credentials for user per tenant. ec2-credentials-create,ec2 credentials create,Create EC2-compatible credentials for user per tenant.
ec2-credentials-delete,ec2 credentials delete,Delete EC2-compatible credentials. ec2-credentials-delete,ec2 credentials delete,Delete EC2-compatible credentials.
ec2-credentials-get,ec2 credentials show,Display EC2-compatible credentials. ec2-credentials-get,ec2 credentials show,Display EC2-compatible credentials.
ec2-credentials-list,ec2 credentials list,List EC2-compatible credentials for a user. ec2-credentials-list,ec2 credentials list,List EC2-compatible credentials for a user.
endpoint-create,endpoint create,Create a new endpoint associated with a service. endpoint-create,endpoint create,Create a new endpoint associated with a service.
endpoint-delete,endpoint delete,Delete a service endpoint. endpoint-delete,endpoint delete,Delete a service endpoint.
endpoint-get,endpoint get,Find endpoint filtered by a specific attribute or service type. endpoint-get,endpoint get,Find endpoint filtered by a specific attribute or service type.
endpoint-list,endpoint list,List configured service endpoints. endpoint-list,endpoint list,List configured service endpoints.
password-update,user password set,Update own password. password-update,user password set,Update own password.
role-create,role create,Create new role. role-create,role create,Create new role.
role-delete,role delete,Delete role. role-delete,role delete,Delete role.
role-get,role show,Display role details. role-get,role show,Display role details.
role-list,role list,List all roles. role-list,role list,List all roles.
service-create,service create,Add service to Service Catalog. service-create,service create,Add service to Service Catalog.
service-delete,service delete,Delete service from Service Catalog. service-delete,service delete,Delete service from Service Catalog.
service-get,service show,Display service from Service Catalog. service-get,service show,Display service from Service Catalog.
service-list,service list,List all services in Service Catalog. service-list,service list,List all services in Service Catalog.
tenant-create,project create,Create new tenant. tenant-create,project create,Create new tenant.
tenant-delete,project delete,Delete tenant. tenant-delete,project delete,Delete tenant.
tenant-get,project show,Display tenant details. tenant-get,project show,Display tenant details.
tenant-list,project list,List all tenants. tenant-list,project list,List all tenants.
tenant-update,project set,"Update tenant name, description, enabled status." tenant-update,project set,"Update tenant name, description, enabled status."
token-get,token issue,Display the current user token. token-get,token issue,Display the current user token.
user-create,user create,Create new user. user-create,user create,Create new user.
user-delete,user delete,Delete user. user-delete,user delete,Delete user.
user-get,user show,Display user details. user-get,user show,Display user details.
user-list,user list,List users. user-list,user list,List users.
user-password-update,user set --password,Update user password. user-password-update,user set --password,Update user password.
user-role-add,role add <role> --user --project,Add role to user. user-role-add,role add <role> --user --project,Add role to user.
user-role-list,role assignment list --user --project,List roles granted to a user. user-role-list,role assignment list --user --project,List roles granted to a user.
user-role-remove,role remove <role> --user --project,Remove role from user. user-role-remove,role remove <role> --user --project,Remove role from user.
user-update,user set,"Update user's name, email, and enabled status." user-update,user set,"Update user's name, email, and enabled status."
discover,WONTFIX,"Discover Keystone servers, supported API versions and extensions." discover,WONTFIX,"Discover Keystone servers, supported API versions and extensions."
bootstrap,WONTFIX,"Grants a new role to a new user on a new tenant, after creating each." bootstrap,WONTFIX,"Grants a new role to a new user on a new tenant, after creating each."
bash-completion,complete,Prints all of the commands and options to stdout. bash-completion,complete,Prints all of the commands and options to stdout.
help,help,Display help about this program or one of its subcommands. help,help,Display help about this program or one of its subcommands.

1 catalog catalog show List service catalog, possibly filtered by service.
2 ec2-credentials-create ec2 credentials create Create EC2-compatible credentials for user per tenant.
3 ec2-credentials-delete ec2 credentials delete Delete EC2-compatible credentials.
4 ec2-credentials-get ec2 credentials show Display EC2-compatible credentials.
5 ec2-credentials-list ec2 credentials list List EC2-compatible credentials for a user.
6 endpoint-create endpoint create Create a new endpoint associated with a service.
7 endpoint-delete endpoint delete Delete a service endpoint.
8 endpoint-get endpoint get Find endpoint filtered by a specific attribute or service type.
9 endpoint-list endpoint list List configured service endpoints.
10 password-update user password set Update own password.
11 role-create role create Create new role.
12 role-delete role delete Delete role.
13 role-get role show Display role details.
14 role-list role list List all roles.
15 service-create service create Add service to Service Catalog.
16 service-delete service delete Delete service from Service Catalog.
17 service-get service show Display service from Service Catalog.
18 service-list service list List all services in Service Catalog.
19 tenant-create project create Create new tenant.
20 tenant-delete project delete Delete tenant.
21 tenant-get project show Display tenant details.
22 tenant-list project list List all tenants.
23 tenant-update project set Update tenant name, description, enabled status.
24 token-get token issue Display the current user token.
25 user-create user create Create new user.
26 user-delete user delete Delete user.
27 user-get user show Display user details.
28 user-list user list List users.
29 user-password-update user set --password Update user password.
30 user-role-add role add <role> --user --project Add role to user.
31 user-role-list role assignment list --user --project List roles granted to a user.
32 user-role-remove role remove <role> --user --project Remove role from user.
33 user-update user set Update user's name, email, and enabled status.
34 discover WONTFIX Discover Keystone servers, supported API versions and extensions.
35 bootstrap WONTFIX Grants a new role to a new user on a new tenant, after creating each.
36 bash-completion complete Prints all of the commands and options to stdout.
37 help help Display help about this program or one of its subcommands.

@ -1,10 +1,10 @@
delete,object delete / container delete,Delete a container or objects within a container. delete,object delete / container delete,Delete a container or objects within a container.
download,object save / container save,Download objects from containers. download,object save / container save,Download objects from containers.
list,object list / container list,Lists the containers for the account or the objects for a container. list,object list / container list,Lists the containers for the account or the objects for a container.
post,container create / object set / container set / object store account set,"Updates meta information for the account, container, or object." post,container create / object set / container set / object store account set,"Updates meta information for the account, container, or object."
copy,,"Copies object, optionally adds meta." copy,,"Copies object, optionally adds meta."
stat,object show / container show / object store account show,"Displays information for the account, container, or object." stat,object show / container show / object store account show,"Displays information for the account, container, or object."
upload,object create,Uploads files or directories to the given container. upload,object create,Uploads files or directories to the given container.
capabilities,,List cluster capabilities. capabilities,,List cluster capabilities.
tempurl,,Create a temporary URL. tempurl,,Create a temporary URL.
auth,WONTFIX,Display auth related environment variables. auth,WONTFIX,Display auth related environment variables.

1 delete object delete / container delete Delete a container or objects within a container.
2 download object save / container save Download objects from containers.
3 list object list / container list Lists the containers for the account or the objects for a container.
4 post container create / object set / container set / object store account set Updates meta information for the account, container, or object.
5 copy Copies object, optionally adds meta.
6 stat object show / container show / object store account show Displays information for the account, container, or object.
7 upload object create Uploads files or directories to the given container.
8 capabilities List cluster capabilities.
9 tempurl Create a temporary URL.
10 auth WONTFIX Display auth related environment variables.

@ -10,4 +10,3 @@ features:
servers. servers.
Requires ``os-compute-api-version`` 2.73 or greater. Requires ``os-compute-api-version`` 2.73 or greater.
[Blueprint `add-locked-reason <https://blueprints.launchpad.net/nova/+spec/add-locked-reason>`_] [Blueprint `add-locked-reason <https://blueprints.launchpad.net/nova/+spec/add-locked-reason>`_]

@ -2,7 +2,7 @@
features: features:
- | - |
Add support for attaching and removing qos policy to floating IPs. Add support for attaching and removing qos policy to floating IPs.
Add option ``--qos-policy`` to the ``floating ip create`` and Add option ``--qos-policy`` to the ``floating ip create`` and
``floating ip set`` commands to add qos policy to a floating IP. ``floating ip set`` commands to add qos policy to a floating IP.

@ -2,7 +2,7 @@
features: features:
- | - |
Add ``--tag`` option to ``project create`` command, ``--tag``, ``--clear-tags``, and Add ``--tag`` option to ``project create`` command, ``--tag``, ``--clear-tags``, and
``--remove-tag`` options to ``project set`` command. Add ``--tags``, ``--tags-any``, ``--remove-tag`` options to ``project set`` command. Add ``--tags``, ``--tags-any``,
``--not-tags``, and ``--not-tags-any`` options to ``project list`` command to filter ``--not-tags``, and ``--not-tags-any`` options to ``project list`` command to filter
list results by different projects based on their tags. list results by different projects based on their tags.
[`blueprint project-tags <https://blueprints.launchpad.net/keystone/+spec/project-tags>`_] [`blueprint project-tags <https://blueprints.launchpad.net/keystone/+spec/project-tags>`_]

@ -9,7 +9,7 @@ fixes:
The device name of the boot volume specificed in the ``--volume`` option The device name of the boot volume specificed in the ``--volume`` option
is no longer assumed to be *'vda'* but now uses the hypervisor's boot is no longer assumed to be *'vda'* but now uses the hypervisor's boot
index to obtain the device name. This maintains the status quo for index to obtain the device name. This maintains the status quo for
**QEMU/KVM** hypervisors but **XEN**, **parallels** and others **QEMU/KVM** hypervisors but **XEN**, **parallels** and others
*virt types* that have device naming is different from ``vd*`` *virt types* that have device naming is different from ``vd*``
should now also work correctly. should now also work correctly.
[:lpbug:`1497845`] [:lpbug:`1497845`]

@ -1,7 +1,7 @@
--- ---
features: features:
- | - |
Add ``--dns-domain`` and ``--dns-name`` options to the Add ``--dns-domain`` and ``--dns-name`` options to the
``floating ip create`` commands. These options ``floating ip create`` commands. These options
set the DNS domain and name for the floating IP. set the DNS domain and name for the floating IP.

@ -7,6 +7,6 @@ upgrade:
Remove deprecated ``user role list`` command. Remove deprecated ``user role list`` command.
Use ``role assignment list`` options ``--project`` and ``--user`` instead. Use ``role assignment list`` options ``--project`` and ``--user`` instead.
- | - |
Remove deprecated ``service create`` option ``--type``. Remove deprecated ``service create`` option ``--type``.
The type is supplied as a positional argument in The The type is supplied as a positional argument in The
``service create --name <service-name> type`` command. ``service create --name <service-name> type`` command.