diff options
author | Anish Athalye <me@anishathalye.com> | 2015-04-24 18:26:20 -0400 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2015-04-24 18:26:20 -0400 |
commit | fd08ddacd34530186f3954b435d4dd90b5b9471f (patch) | |
tree | 94c0c4421bc51bace17c8a27968a6ce7d4fb4393 /dotbot | |
parent | bdc1b2205f00c7fb80412668edb1171155b3fcec (diff) |
Fix style
Fix formatting of keyword arguments according to PEP 8.
Diffstat (limited to 'dotbot')
-rw-r--r-- | dotbot/cli.py | 24 | ||||
-rw-r--r-- | dotbot/executor/commandrunner.py | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/dotbot/cli.py b/dotbot/cli.py index c280ca1..fffc017 100644 --- a/dotbot/cli.py +++ b/dotbot/cli.py @@ -5,18 +5,18 @@ from .messenger import Messenger from .messenger import Level def add_options(parser): - parser.add_argument('-Q', '--super-quiet', dest = 'super_quiet', action = 'store_true', - help = 'suppress almost all output') - parser.add_argument('-q', '--quiet', dest = 'quiet', action = 'store_true', - help = 'suppress most output') - parser.add_argument('-v', '--verbose', dest = 'verbose', action = 'store_true', - help = 'enable verbose output') - parser.add_argument('-d', '--base-directory', nargs = 1, - dest = 'base_directory', help = 'execute commands from within BASEDIR', - metavar = 'BASEDIR', required = True) - parser.add_argument('-c', '--config-file', nargs = 1, dest = 'config_file', - help = 'run commands given in CONFIGFILE', metavar = 'CONFIGFILE', - required = True) + parser.add_argument('-Q', '--super-quiet', dest='super_quiet', action='store_true', + help='suppress almost all output') + parser.add_argument('-q', '--quiet', dest='quiet', action='store_true', + help='suppress most output') + parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', + help='enable verbose output') + parser.add_argument('-d', '--base-directory', nargs=1, + dest='base_directory', help='execute commands from within BASEDIR', + metavar='BASEDIR', required=True) + parser.add_argument('-c', '--config-file', nargs=1, dest='config_file', + help='run commands given in CONFIGFILE', metavar='CONFIGFILE', + required=True) def read_config(config_file): reader = ConfigReader(config_file) diff --git a/dotbot/executor/commandrunner.py b/dotbot/executor/commandrunner.py index fd44e49..45d40f5 100644 --- a/dotbot/executor/commandrunner.py +++ b/dotbot/executor/commandrunner.py @@ -41,8 +41,8 @@ class CommandRunner(Executor): self._log.lowinfo(cmd) else: self._log.lowinfo('%s [%s]' % (msg, cmd)) - ret = subprocess.call(cmd, shell = True, stdin = stdin, stdout = stdout, - stderr = stderr, cwd = self._base_directory) + ret = subprocess.call(cmd, shell=True, stdin=stdin, stdout=stdout, + stderr=stderr, cwd=self._base_directory) if ret != 0: success = False self._log.warning('Command [%s] failed' % cmd) |