mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Add flake8 to the tidy process for Python files
Fixes #6236 Also included in this commit are the changes need to make flake8 pass for the existing python file
This commit is contained in:
parent
907c051bd1
commit
848c57653c
15 changed files with 113 additions and 68 deletions
|
@ -36,8 +36,8 @@ class MachCommands(CommandBase):
|
|||
|
||||
if self.context.topdir == getcwd():
|
||||
with cd(path.join('components', 'servo')):
|
||||
return subprocess.call(["cargo"] + params,
|
||||
env=self.build_env())
|
||||
return subprocess.call(
|
||||
["cargo"] + params, env=self.build_env())
|
||||
return subprocess.call(['cargo'] + params,
|
||||
env=self.build_env())
|
||||
|
||||
|
@ -51,7 +51,7 @@ class MachCommands(CommandBase):
|
|||
'--package', '-p', default=None,
|
||||
help='Updates selected package')
|
||||
@CommandArgument(
|
||||
'--all-packages','-a',action='store_true',
|
||||
'--all-packages', '-a', action='store_true',
|
||||
help='Updates all packages')
|
||||
def cargo_update(self, params=None, package=None, all_packages=None):
|
||||
self.update_cargo(params, package, all_packages)
|
||||
|
@ -63,10 +63,10 @@ class MachCommands(CommandBase):
|
|||
'params', default=None, nargs='...',
|
||||
help='Command-line arguments to be passed through to cargo update')
|
||||
@CommandArgument(
|
||||
'--package','-p',default=None,
|
||||
'--package', '-p', default=None,
|
||||
help='Updates selected package')
|
||||
@CommandArgument(
|
||||
'--all-packages','-a',action='store_true',
|
||||
'--all-packages', '-a', action='store_true',
|
||||
help='Updates all packages')
|
||||
def update_cargo(self, params=None, package=None, all_packages=None):
|
||||
if not params:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue