1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

tools: pylint check-includes.py

This commit is contained in:
Frantisek Sumsal 2023-07-17 18:37:17 +02:00
parent b4048aaa1e
commit f56accb6ef

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1-or-later
# pylint: disable=missing-docstring,invalid-name,unspecified-encoding,consider-using-with
# pylint: disable=consider-using-with
import os
import pathlib
@ -28,5 +28,5 @@ def check_file(filename):
return good
if __name__ == '__main__':
good = all(check_file(name) for name in sys.argv[1:])
sys.exit(0 if good else 1)
all_good = all(check_file(name) for name in sys.argv[1:])
sys.exit(0 if all_good else 1)