match hacking rules in swift
Change-Id: Iee02978f38ca020754f52ceaed6aa3684fa87bc9
This commit is contained in:
parent
b4907e0c81
commit
95aa3e96f2
@ -1,3 +1,16 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
from swiftclient.utils import prt_bytes
|
from swiftclient.utils import prt_bytes
|
||||||
|
|
||||||
|
|
||||||
|
7
tox.ini
7
tox.ini
@ -30,6 +30,13 @@ commands = python setup.py testr --coverage
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
# it's not a bug that we aren't using all of hacking
|
||||||
|
# H102 -> apache2 license exists
|
||||||
|
# H103 -> license is apache
|
||||||
|
# H201 -> no bare excepts
|
||||||
|
# H501 -> don't use locals() for str formatting
|
||||||
|
# H903 -> \n not \r\n
|
||||||
ignore = H
|
ignore = H
|
||||||
|
select = H102, H103, H201, H501, H903
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv,.tox,dist,doc,test,*egg
|
exclude = .venv,.tox,dist,doc,test,*egg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user