File tree Expand file tree Collapse file tree 5 files changed +17
-11
lines changed
Expand file tree Collapse file tree 5 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 2020 pip install pylint
2121 - name : Analysing the code with pylint
2222 run : |
23- pylint $(git ls-files '*.py')
23+ pylint --rcfile pylint.rc $(git ls-files '*.py')
Original file line number Diff line number Diff line change 1+ '''
2+ Used to manage perf unit test
3+ '''
14import pytest
25def pytest_addoption (parser ):
36 parser .addoption ("--runperf" , action = "store_true" ,
47 help = "run perf tests" )
58
69def pytest_runtest_setup (item ):
710 if 'perf' in item .keywords and not item .config .getoption ("--runperf" ):
8- pytest .skip ("need --runperf option to run" )
11+ pytest .skip ("need --runperf option to run" )
Original file line number Diff line number Diff line change 3636
3737import zlib
3838
39- from pyhdrh import add_array # pylint: disable=no-name-in-module
40- from pyhdrh import decode # pylint: disable=no-name-in-module
41- from pyhdrh import encode # pylint: disable=no-name-in-module
39+ from pyhdrh import add_array # pylint: disable=no-name-in-module,import-error
40+ from pyhdrh import decode # pylint: disable=no-name-in-module,import-error
41+ from pyhdrh import encode # pylint: disable=no-name-in-module,import-error
4242
4343V2_ENCODING_COOKIE_BASE = 0x1c849303
4444V2_COMPRESSION_COOKIE_BASE = 0x1c849304
Original file line number Diff line number Diff line change 1+ '''
2+ Setup
3+ '''
14import sys
25from setuptools import setup
36from setuptools import Extension
710class Tox (test ):
811 def initialize_options (self ):
912 test .initialize_options (self )
10- self .tox_args = None
13+ self .tox_args = None # pylint: disable=attribute-defined-outside-init
1114
1215 def finalize_options (self ):
1316 test .finalize_options (self )
1417 self .test_args = []
15- self .test_suite = True
18+ self .test_suite = True # pylint: disable=attribute-defined-outside-init
1619
1720 def run_tests (self ):
18- import tox
21+ import tox # pylint: disable=import-outside-toplevel
1922 sys .exit (tox .cmdline ())
2023
2124
Original file line number Diff line number Diff line change 3939
4040import pytest
4141
42- from pyhdrh import add_array # pylint: disable=no-name-in-module
43- from pyhdrh import encode # pylint: disable=no-name-in-module
44- from pyhdrh import decode # pylint: disable=no-name-in-module
42+ from pyhdrh import add_array # pylint: disable=no-name-in-module,import-error
43+ from pyhdrh import encode # pylint: disable=no-name-in-module,import-error
44+ from pyhdrh import decode # pylint: disable=no-name-in-module,import-error
4545
4646from hdrh .histogram import HdrHistogram
4747from hdrh .log import HistogramLogWriter
You can’t perform that action at this time.
0 commit comments