зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344842 - Enable flake8 rule E261: "at least two spaces before inline comment". r=dexter
This commit is contained in:
Родитель
187337cc20
Коммит
eab7725f67
|
@ -1,5 +1,5 @@
|
|||
[flake8]
|
||||
# See http://pep8.readthedocs.io/en/latest/intro.html#configuration
|
||||
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E502, E128, E501, E713, E111, E261, E222, E201, E202, W602, E127, F841, W601
|
||||
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E502, E128, E501, E713, E111, E222, E201, E202, W602, E127, F841, W601
|
||||
max-line-length = 99
|
||||
filename = *.py, +.lint
|
||||
|
|
|
@ -78,8 +78,8 @@ def write_common_event_table(events, output, string_table, extra_table):
|
|||
print(" {%d, %d, %d, %d, %d, %s, %s}," %
|
||||
(string_table.stringIndex(e.category),
|
||||
string_table.stringIndex(e.expiry_version),
|
||||
extras[0], # extra keys index
|
||||
extras[1], # extra keys count
|
||||
extras[0], # extra keys index
|
||||
extras[1], # extra keys count
|
||||
e.expiry_day,
|
||||
e.dataset,
|
||||
" | ".join(e.record_in_processes_enum)),
|
||||
|
|
|
@ -78,11 +78,11 @@ class ScalarType:
|
|||
|
||||
# The required and optional fields in a scalar type definition.
|
||||
REQUIRED_FIELDS = {
|
||||
'bug_numbers': list, # This contains ints. See LIST_FIELDS_CONTENT.
|
||||
'bug_numbers': list, # This contains ints. See LIST_FIELDS_CONTENT.
|
||||
'description': basestring,
|
||||
'expires': basestring,
|
||||
'kind': basestring,
|
||||
'notification_emails': list, # This contains strings. See LIST_FIELDS_CONTENT.
|
||||
'notification_emails': list, # This contains strings. See LIST_FIELDS_CONTENT.
|
||||
'record_in_processes': list,
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче