Start using hacking 0.6
So we can start using new hacking 0.6 checks. Since hacking 0.6 pins pep8, pyflakes and flake8 they can be removed from test-requires. For any unfixed checks list them in tox.ini Fix a H103, 'Header does not match Apache 2.0 License notice' that leaked in Change-Id: I652fe3270f1c37afdd386bfae7c4b27b6abcfa06
This commit is contained in:
parent
19dc70f0c0
commit
dea5ce73a8
@ -10,7 +10,7 @@
|
||||
# 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
|
||||
# under the License.
|
||||
|
||||
from nova.api.openstack import extensions
|
||||
from nova.api.openstack import wsgi
|
||||
|
@ -1,9 +1,4 @@
|
||||
# Install bounded pep8/pyflakes first, then let flake8 install
|
||||
pep8==1.4.5
|
||||
pyflakes==0.7.2
|
||||
flake8==2.0
|
||||
hacking>=0.5.3,<0.6
|
||||
|
||||
hacking>=0.5.6,<0.7
|
||||
coverage>=3.6
|
||||
discover
|
||||
feedparser
|
||||
|
8
tox.ini
8
tox.ini
@ -41,7 +41,13 @@ commands =
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
ignore = E121,E122,E123,E124,E126,E127,E128,E711,E712,H302,H303,H404,F403,F811,F841,N309
|
||||
# TODO Hacking 0.6 checks to fix
|
||||
# H102 Apache 2.0 license header not found
|
||||
# H232 Python 3.x incompatible octal 1 should be written as 0o1
|
||||
# H233 Python 3.x incompatible use of print operator
|
||||
# H501 Do not use locals() for string formatting
|
||||
|
||||
ignore = E121,E122,E123,E124,E126,E127,E128,E711,E712,H102,H232,H233,H302,H303,H404,F403,H501,F811,F841,N309
|
||||
builtins = _
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,*plugins/xenserver*,tools
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user