nova/nova/scheduler
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
..
client Clean up allocations left by evacuation when deleting service 2021-10-26 19:26:19 +09:00
filters Merge "Deprecate filters that have been replaced by placement filters" 2021-08-21 02:51:28 +00:00
weights Add CrossCellWeigher 2019-12-12 12:40:29 -05:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
host_manager.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
manager.py Add force kwarg to delete_allocation_for_instance 2021-08-30 06:11:25 +00:00
request_filter.py FUP: Catch and reraise routed nets exception 2021-02-19 19:23:10 +01:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
utils.py Support interface attach / detach with new resource request format 2021-09-01 15:51:47 +02:00