diff --git a/devstack/tools/ironic/scripts/configure-vm.py b/devstack/tools/ironic/scripts/configure-vm.py index 378fcb85ad..2d5a9adf17 100755 --- a/devstack/tools/ironic/scripts/configure-vm.py +++ b/devstack/tools/ironic/scripts/configure-vm.py @@ -1,4 +1,17 @@ #!/usr/bin/env python +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import argparse import os.path diff --git a/tools/states_to_dot.py b/tools/states_to_dot.py index c452351c20..0a03c2c0ec 100755 --- a/tools/states_to_dot.py +++ b/tools/states_to_dot.py @@ -26,6 +26,7 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.insert(0, top_dir) + def print_header(text): print("*" * len(text)) print(text) diff --git a/tox.ini b/tox.ini index 746e86ba0e..4ba32ddd12 100644 --- a/tox.ini +++ b/tox.ini @@ -67,7 +67,7 @@ commands = {posargs} [flake8] ignore = E129 -exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools +exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build max-complexity=17 [hacking]