From f7d863abb53835753f24c4b26c22c74f06014594 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Wed, 16 Oct 2024 10:10:06 -0700 Subject: [PATCH] Suppress pylint warnings in tools/genast.py These were getting annoying. I've disabled these warnings: * missing-function-docstring * missing-class-docstring * missing-module-docstring * line-too-long and also squashed an explicit `open()` encoding warning. Signed-off-by: Alek Ratzloff --- tools/genast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/genast.py b/tools/genast.py index 10c201e..e6f6960 100755 --- a/tools/genast.py +++ b/tools/genast.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# pylint: disable=missing-function-docstring,missing-class-docstring,missing-module-docstring,line-too-long import abc import sys import time @@ -283,7 +284,7 @@ def main(): for g in GENERATE: sb.line(g.generate()) - with open(path, "w") as fp: + with open(path, "w", encoding="utf-8") as fp: fp.write(str(sb).strip())