Skip to content

Commit

Permalink
fix ci/cd warnings
Browse files Browse the repository at this point in the history
Change-Id: I5caaa5d8585541957dba0466d3cc0f53d8be310c
  • Loading branch information
ahothan committed Aug 28, 2019
1 parent 997e29f commit 79c26ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hdrh/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,4 +629,4 @@ def dump(encoded_histogram, output=None,
# in python 2.7, bytes can be writtent to sys.stdout
output = sys.stdout
histogram.output_percentile_distribution(output,
output_value_unit_scaling_ratio)
output_value_unit_scaling_ratio)
2 changes: 1 addition & 1 deletion pylint.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,import-star-module-level,raw-checker-failed,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call,missing-docstring,redefined-builtin,no-name-in-module,no-self-use,no-member,arguments-differ,attribute-defined-outside-init,non-iterator-returned,eval-used,unexpected-keyword-arg,useless-object-inheritance,old-style-class
disable=superfluous-parens,print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,import-star-module-level,raw-checker-failed,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call,missing-docstring,redefined-builtin,no-name-in-module,no-self-use,no-member,arguments-differ,attribute-defined-outside-init,non-iterator-returned,eval-used,unexpected-keyword-arg,useless-object-inheritance,old-style-class

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
6 changes: 2 additions & 4 deletions test/test_hdrh_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@
limitations under the License.
'''
import os
import sys

from hdrh.histogram import HdrHistogram


def test_dump_histogram():
ENCODE_SAMPLES_HDRHISTOGRAM_C = [
samples = [
# standard Hdr test histogram
'HISTFAAAACF4nJNpmSzMwMDAzAABMJoRTM6Y1mD/ASLwN5oJAFuQBYU=',
'HISTFAAAACh4nJNpmSzMwMDAyQABzFCaEUzOmNZg/wEisL2Kaasc00ImJgCC8Qbe'
]
for hdrh in ENCODE_SAMPLES_HDRHISTOGRAM_C:
for hdrh in samples:
HdrHistogram.dump(hdrh, output=open(os.devnull, 'wb'))
HdrHistogram.dump(hdrh)

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ commands=
show-source = True
exclude = .tox,dist,doc,*.egg,build
max-line-length = 100
#E302: expected 2 blank linee
ignore = E302
#E302: expected 2 blank lines
ignore = E302, W504

[pytest]
markers =
Expand Down

0 comments on commit 79c26ae

Please sign in to comment.