Enable hacking check H104

* [H104] Files with no code shouldn’t contain any license
         header nor comments, and must be left completely empty.

Change-Id: Ia9006dbf9d3d2f9d4037a428681c3cee929a8e36
This commit is contained in:
Christian Berendt 2014-07-16 19:22:17 +02:00
parent 8691a42908
commit acf67623f1
3 changed files with 1 additions and 32 deletions

View File

@ -1,15 +0,0 @@
# Copyright 2012 Managed I.T.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# 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.

View File

@ -1,15 +0,0 @@
# Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@hp.com>
#
# 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.

View File

@ -30,7 +30,6 @@ commands = {posargs}
[flake8]
# ignored flake8 codes:
# H104 file contains nothing more than comments
# H302 import only modules
# H306 imports not in alphabetical order
# H402 one line docstring needs punctuation
@ -40,7 +39,7 @@ commands = {posargs}
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
ignore = H104,H302,H306,H402,H404,H405,H904,E126,E128
ignore = H302,H306,H402,H404,H405,H904,E126,E128
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*openstack/deprecated*,*lib/python*,*egg,build,tools