nova/nova/api/openstack
Sean Mooney f3d48000b1 Add autopep8 to tox and pre-commit
autopep8 is a code formating tool that makes python code pep8
compliant without changing everything. Unlike black it will
not radically change all code and the primary change to the
existing codebase is adding a new line after class level doc strings.

This change adds a new tox autopep8 env to manually run it on your
code before you submit a patch, it also adds autopep8 to pre-commit
so if you use pre-commit it will do it for you automatically.

This change runs autopep8 in diff mode with --exit-code in the pep8
tox env so it will fail if autopep8 would modify your code if run
in in-place mode. This allows use to gate on autopep8 not modifying
patches that are submited. This will ensure authorship of patches is
maintianed.

The intent of this change is to save the large amount of time we spend
on ensuring style guidlines are followed automatically to make it
simpler for both new and old contibutors to work on nova and save
time and effort for all involved.

Change-Id: Idd618d634cc70ae8d58fab32f322e75bfabefb9d
2021-11-08 12:37:27 +00:00
..
compute Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
__init__.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
api_version_request.py api: Introduce microversion 2.89 adjusting os-volume_attachments 2021-08-24 12:07:41 +01:00
auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
common.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
identity.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
requestlog.py api: Log correct client IP if load balancer in use 2021-06-09 22:20:38 +00:00
urlmap.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
versioned_method.py Implement microversion support on api methods 2014-12-05 09:54:41 +08:00
wsgi.py Convert features not supported error to HTTPBadRequest 2021-09-01 09:09:58 -05:00
wsgi_app.py api: enable oslo.reports when using uWSGI 2021-10-14 09:23:08 +03:00