Fix some pylint warnings and add custom .pylintrc file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2022-04-17 00:34:05 +02:00
parent 71c550a5ce
commit ce9181f53f
2 changed files with 15 additions and 9 deletions

6
.pylintrc Normal file
View file

@ -0,0 +1,6 @@
[MESSAGES CONTROL]
disable=invalid-name,
locally-disabled,
too-many-arguments,
too-many-branches,
line-too-long,

18
gitdch
View file

@ -10,9 +10,9 @@ import sys
import git
default_git_path = './'
default_code_name = 'unstable'
default_urgency = 'medium'
DEFAULT_GIT_PATCH = './'
DEFAULT_CODE_NAME = 'unstable'
DEFAULT_URGENCY = 'medium'
parser = argparse.ArgumentParser(description=__doc__)
@ -54,8 +54,8 @@ parser.add_argument(
'--path',
type=str,
dest='git_path',
help='Git repository path (default: %s)' % default_git_path,
default=default_git_path
help='Git repository path (default: %s)' % DEFAULT_GIT_PATCH,
default=DEFAULT_GIT_PATCH
)
parser.add_argument(
@ -96,8 +96,8 @@ parser.add_argument(
'--code-name',
type=str,
dest='code_name',
help='Debian code name (default: %s)' % default_code_name,
default=default_code_name
help='Debian code name (default: %s)' % DEFAULT_CODE_NAME,
default=DEFAULT_CODE_NAME
)
parser.add_argument(
@ -105,8 +105,8 @@ parser.add_argument(
'--urgency',
type=str,
dest='urgency',
help='Package urgency (default: %s)' % default_urgency,
default=default_urgency
help='Package urgency (default: %s)' % DEFAULT_URGENCY,
default=DEFAULT_URGENCY
)
options = parser.parse_args()