mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
ci: Conform to Python's coding style
The check-missing-install-tag.py script breaks PEP8, and the style check CI job complains about it.
This commit is contained in:
parent
d2818c2033
commit
8f975d07f3
@ -8,15 +8,18 @@ missing installation tag.
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('builddir', type=Path)
|
parser.add_argument("builddir", type=Path)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
logfile = args.builddir / 'meson-logs' / 'meson-log.txt'
|
logfile = args.builddir / "meson-logs" / "meson-log.txt"
|
||||||
with logfile.open(encoding='utf-8') as f:
|
with logfile.open(encoding="utf-8") as f:
|
||||||
if 'Failed to guess install tag' in f.read():
|
if "Failed to guess install tag" in f.read():
|
||||||
print(f'Some files are missing install_tag, see {logfile} for details.')
|
print(
|
||||||
|
f"Some files are missing install_tag, see {logfile} for details." # no-qa
|
||||||
|
)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user