Skip to content

Commit

Permalink
make linters happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
M0ses committed Nov 2, 2022
1 parent 8309414 commit a5d025d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,16 @@ confidence=
# a feature request to improve pylint in this respect:
# https://github.com/PyCQA/pylint/issues/246

disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,missing-docstring,old-style-class,bad-whitespace,consider-using-with,consider-using-f-string,duplicate-code
# The following disables habe been activated to make most combinations
# of pylint/python versions working again.
#
# * E0012 - bad-option-value
# * R0022 - useless-option-value
# * W0012 - unknown-option-value
# * E0015 - unrecognized-option


disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,missing-docstring,old-style-class,bad-whitespace,consider-using-with,consider-using-f-string,duplicate-code,R0022,W0012,E0012,E0015


[REPORTS]
Expand Down
10 changes: 9 additions & 1 deletion .pylinttestsrc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,15 @@ confidence=
# a feature request to improve pylint in this respect:
# https://github.com/PyCQA/pylint/issues/246

disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,missing-docstring,old-style-class,bad-whitespace,duplicate-code,too-many-public-methods,protected-access,too-many-locals,consider-using-with,consider-using-f-string,super-with-arguments
# The following disables habe been activated to make most combinations
# of pylint/python versions working again.
#
# * E0012 - bad-option-value
# * R0022 - useless-option-value
# * W0012 - unknown-option-value
# * E0015 - unrecognized-option

disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,missing-docstring,old-style-class,bad-whitespace,duplicate-code,too-many-public-methods,protected-access,too-many-locals,consider-using-with,consider-using-f-string,super-with-arguments,E0012,R0022,W0012,E0015


[REPORTS]
Expand Down
5 changes: 3 additions & 2 deletions TarSCM/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ def run_cmd(self, cmd, cwd, interactive=False, raisesysexit=False):
return (proc.returncode, output)

def safe_run(self, cmd, cwd, interactive=False):
"""Execute the command cmd in the working directory cwd and check return
value. If the command returns non-zero raise a SystemExit exception.
"""Execute the command cmd in the working directory cwd and check
return value. If the command returns non-zero raise a SystemExit
exception.
"""
result = self.run_cmd(cmd, cwd, interactive, raisesysexit=True)
return result
Expand Down
1 change: 1 addition & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def prepare_testsuite(tclasses):
to_run = {}
for arg in sys.argv[1:]:
rmatch = re.match('^/(.+)/$', arg)
# pylint: disable=unnecessary-lambda-assignment
if rmatch:
# regexp mode
regexp = rmatch.group(1)
Expand Down

0 comments on commit a5d025d

Please sign in to comment.