Fix some pylint warnings and add custom .pylintrc file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
71c550a5ce
commit
ce9181f53f
2 changed files with 15 additions and 9 deletions
6
.pylintrc
Normal file
6
.pylintrc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
disable=invalid-name,
|
||||||
|
locally-disabled,
|
||||||
|
too-many-arguments,
|
||||||
|
too-many-branches,
|
||||||
|
line-too-long,
|
18
gitdch
18
gitdch
|
@ -10,9 +10,9 @@ import sys
|
||||||
|
|
||||||
import git
|
import git
|
||||||
|
|
||||||
default_git_path = './'
|
DEFAULT_GIT_PATCH = './'
|
||||||
default_code_name = 'unstable'
|
DEFAULT_CODE_NAME = 'unstable'
|
||||||
default_urgency = 'medium'
|
DEFAULT_URGENCY = 'medium'
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description=__doc__)
|
parser = argparse.ArgumentParser(description=__doc__)
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ parser.add_argument(
|
||||||
'--path',
|
'--path',
|
||||||
type=str,
|
type=str,
|
||||||
dest='git_path',
|
dest='git_path',
|
||||||
help='Git repository path (default: %s)' % default_git_path,
|
help='Git repository path (default: %s)' % DEFAULT_GIT_PATCH,
|
||||||
default=default_git_path
|
default=DEFAULT_GIT_PATCH
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -96,8 +96,8 @@ parser.add_argument(
|
||||||
'--code-name',
|
'--code-name',
|
||||||
type=str,
|
type=str,
|
||||||
dest='code_name',
|
dest='code_name',
|
||||||
help='Debian code name (default: %s)' % default_code_name,
|
help='Debian code name (default: %s)' % DEFAULT_CODE_NAME,
|
||||||
default=default_code_name
|
default=DEFAULT_CODE_NAME
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -105,8 +105,8 @@ parser.add_argument(
|
||||||
'--urgency',
|
'--urgency',
|
||||||
type=str,
|
type=str,
|
||||||
dest='urgency',
|
dest='urgency',
|
||||||
help='Package urgency (default: %s)' % default_urgency,
|
help='Package urgency (default: %s)' % DEFAULT_URGENCY,
|
||||||
default=default_urgency
|
default=DEFAULT_URGENCY
|
||||||
)
|
)
|
||||||
|
|
||||||
options = parser.parse_args()
|
options = parser.parse_args()
|
||||||
|
|
Loading…
Reference in a new issue