зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322914 - Enable flake8 linting for security/manager. r=mgoodwin
Various non-conformant B2G related files are simply ignored, since it's not worth the time to update them to conform. MozReview-Commit-ID: 5QMbg5pHSbn --HG-- extra : rebase_source : a133549edc619c2c4fd1d002070d563a145be0d9
This commit is contained in:
Родитель
15f00ba1a2
Коммит
25866904e6
|
@ -0,0 +1,14 @@
|
|||
[flake8]
|
||||
# E128: continuation line under-indented for visual indent.
|
||||
# Best visual indent typically determined based on context.
|
||||
# E261: at least two spaces before inline comment.
|
||||
# Not PSM style.
|
||||
# E302: expected 2 blank lines, found 1.
|
||||
# Not really PSM style.
|
||||
ignore = E128,E261,E302
|
||||
|
||||
# PSM style is to stick close to 80 chars, but 4 space indentation means we
|
||||
# sometimes need more space.
|
||||
max-line-length = 100
|
||||
|
||||
filename = *.py
|
|
@ -1,3 +1,5 @@
|
|||
# flake8: noqa
|
||||
|
||||
from ctypes import *
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# flake8: noqa
|
||||
|
||||
import argparse
|
||||
from base64 import b64encode
|
||||
from hashlib import sha1
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from ctypes import *
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
import argparse
|
||||
from base64 import b64encode
|
||||
from hashlib import sha1
|
||||
|
|
|
@ -177,6 +177,7 @@ LINTER = {
|
|||
'description': "Python linter",
|
||||
'include': [
|
||||
'python/mozlint',
|
||||
'security/manager',
|
||||
'taskcluster',
|
||||
'testing/firefox-ui',
|
||||
'testing/marionette/client',
|
||||
|
|
Загрузка…
Ссылка в новой задаче