mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
lint: Convert sudo exclusion to double quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
07efcf61d4
commit
1a4f70f1bc
@@ -244,12 +244,11 @@ python_rules = RuleList(
|
||||
'description': 'Unnecessary whitespace between "," and ")"',
|
||||
'good_lines': ['foo = (1, 2, 3,)', 'foo(bar, 42)'],
|
||||
'bad_lines': ['foo = (1, 2, 3, )']},
|
||||
{'pattern': 'sudo',
|
||||
{'pattern': r'\bsudo\b',
|
||||
'include_only': {'scripts/'},
|
||||
'exclude': {'scripts/lib/setup_venv.py'},
|
||||
'exclude_line': {
|
||||
('scripts/lib/zulip_tools.py', 'sudo_args = kwargs.pop(\'sudo_args\', [])'),
|
||||
('scripts/lib/zulip_tools.py', 'args = [\'sudo\', *sudo_args, \'--\', *args]'),
|
||||
('scripts/lib/zulip_tools.py', 'args = ["sudo", *sudo_args, "--", *args]'),
|
||||
},
|
||||
'description': 'Most scripts are intended to run on systems without sudo.',
|
||||
'good_lines': ['subprocess.check_call(["ls"])'],
|
||||
|
||||
Reference in New Issue
Block a user