[glib: 1/3] tools: Disable line length flake8 warnings in gen-visibility-macros.py
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/3] tools: Disable line length flake8 warnings in gen-visibility-macros.py
- Date: Fri, 14 Oct 2022 17:55:43 +0000 (UTC)
commit 24aaff658b0a25b6d0322b8275a769d892166cbd
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Oct 14 18:14:19 2022 +0100
tools: Disable line length flake8 warnings in gen-visibility-macros.py
It contains a lot of C templates, and line wrapping them to satisfy
`flake8` would make them unreadable.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
tools/gen-visibility-macros.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/tools/gen-visibility-macros.py b/tools/gen-visibility-macros.py
index e94d7f3e03..e476713233 100755
--- a/tools/gen-visibility-macros.py
+++ b/tools/gen-visibility-macros.py
@@ -10,6 +10,11 @@ import argparse
import textwrap
from pathlib import Path
+
+# Disable line length warnings as wrapping the C code templates would be hard
+# flake8: noqa: E501
+
+
def gen_versions_macros(args, current_minor_version):
with args.out_path.open('w', encoding='utf-8') as ofile, \
args.in_path.open('r', encoding='utf-8') as ifile:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]