Skip to content

Commit

Permalink
Make linting quieter (google#1834)
Browse files Browse the repository at this point in the history
Don't print useless score, we always aim for 10.
jonathanmetzman authored May 2, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3a2691f commit cdf5ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion presubmit.py
Original file line number Diff line number Diff line change
@@ -215,7 +215,8 @@ def lint(_: List[Path]) -> bool:
'presubmit.py',
]

command = ['python3', '-m', 'pylint', '-j', '0']
# Use "--score no" to make linting quieter.
command = ['python3', '-m', 'pylint', '--score', 'no', '-j', '0']
command.extend(to_check)
returncode = subprocess.run(command, check=False).returncode
return returncode == 0

0 comments on commit cdf5ae9

Please sign in to comment.