diff options
author | Thanh Ha <zxiiro@gmail.com> | 2019-08-23 09:14:39 -0400 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-09-09 19:23:24 +0100 |
commit | 4d90c187a945c04b9949d5ee7738a049dd634897 (patch) | |
tree | 106bf6e05ad1f2260823e7cd68651b535b8ac3ef /jenkins_jobs/cli/subcommand/base.py | |
parent | ead185134d8aa5d3d0974207356de6c4fdb2e6e8 (diff) | |
download | python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.tar.gz python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.tar.xz python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.zip |
Auto-generated output from python-black
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.
Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Diffstat (limited to 'jenkins_jobs/cli/subcommand/base.py')
-rw-r--r-- | jenkins_jobs/cli/subcommand/base.py | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/jenkins_jobs/cli/subcommand/base.py b/jenkins_jobs/cli/subcommand/base.py index 5c214f68..0e5c7bfe 100644 --- a/jenkins_jobs/cli/subcommand/base.py +++ b/jenkins_jobs/cli/subcommand/base.py @@ -22,6 +22,7 @@ class BaseSubCommand(object): """Base class for Jenkins Job Builder subcommands, intended to allow subcommands to be loaded as stevedore extensions by third party users. """ + def __init__(self): pass @@ -52,16 +53,20 @@ class BaseSubCommand(object): """Add '--recursive' and '--exclude' arguments to given parser. """ parser.add_argument( - '-r', '--recursive', - action='store_true', - dest='recursive', + "-r", + "--recursive", + action="store_true", + dest="recursive", default=False, - help="look for yaml files recursively") + help="look for yaml files recursively", + ) parser.add_argument( - '-x', '--exclude', - dest='exclude', - action='append', + "-x", + "--exclude", + dest="exclude", + action="append", default=[], help="paths to exclude when using recursive search, " - "uses standard globbing.") + "uses standard globbing.", + ) |