mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +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
|
@ -58,13 +58,14 @@ def notify_win(title, text):
|
|||
FLASHW_TIMERNOFG = 0x0C
|
||||
|
||||
params = FLASHWINDOW(sizeof(FLASHWINDOW),
|
||||
windll.kernel32.GetConsoleWindow(),
|
||||
FLASHW_CAPTION | FLASHW_TRAY | FLASHW_TIMERNOFG, 3, 0)
|
||||
windll.kernel32.GetConsoleWindow(),
|
||||
FLASHW_CAPTION | FLASHW_TRAY | FLASHW_TIMERNOFG, 3, 0)
|
||||
FlashWindowEx(params)
|
||||
|
||||
|
||||
def notify_darwin(title, text):
|
||||
import Foundation, objc
|
||||
import Foundation
|
||||
import objc
|
||||
|
||||
NSUserNotification = objc.lookUpClass("NSUserNotification")
|
||||
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
|
||||
|
@ -291,7 +292,7 @@ class MachCommands(CommandBase):
|
|||
opts += ["--release"]
|
||||
|
||||
opts += ["--target", "arm-linux-androideabi"]
|
||||
env=self.build_env(gonk=True)
|
||||
env = self.build_env(gonk=True)
|
||||
build_start = time()
|
||||
with cd(path.join("ports", "gonk")):
|
||||
ret = subprocess.call(["cargo", "build"] + opts, env=env)
|
||||
|
@ -304,7 +305,6 @@ class MachCommands(CommandBase):
|
|||
|
||||
return ret
|
||||
|
||||
|
||||
@Command('build-tests',
|
||||
description='Build the Servo test suites',
|
||||
category='build')
|
||||
|
@ -329,7 +329,6 @@ class MachCommands(CommandBase):
|
|||
@CommandArgument('--verbose', '-v',
|
||||
action='store_true',
|
||||
help='Print verbose output')
|
||||
|
||||
@CommandArgument('params', nargs='...',
|
||||
help="Command-line arguments to be passed through to Cargo")
|
||||
def clean(self, manifest_path, params, verbose=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue