From f623eaae59bd57613976766a833bca31f53ba7ed Mon Sep 17 00:00:00 2001 From: Esa Jokinen Date: Tue, 30 Jul 2024 01:41:22 +0300 Subject: [PATCH] ignore intentional flake8 & mypy errors - flake8 E501: using line length 88 from black formatting - some individual mypy ignores --- bin/follow-cvelist.py | 5 +++-- bin/make-mac-prefixes.py | 2 ++ bin/test-cache-enabler.py | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/follow-cvelist.py b/bin/follow-cvelist.py index c2e2aa1..2a96b1f 100755 --- a/bin/follow-cvelist.py +++ b/bin/follow-cvelist.py @@ -21,6 +21,7 @@ # Author : Esa Jokinen (oh2fih) # Home : https://github.com/oh2fih/Misc-Scripts # ------------------------------------------------------------------------------ +# flake8: noqa: E501 import argparse import json @@ -367,8 +368,8 @@ def generate_summary(self, cve: dict) -> str: except KeyError: try: for description in cve["containers"]["cna"]["descriptions"]: - if description["lang"] in ["en", "en-US", "en_US"]: - description = description["value"] + if description["lang"] in ["en", "en-US", "en_US"]: # type: ignore + description = description["value"] # type: ignore title = "" break except KeyError: diff --git a/bin/make-mac-prefixes.py b/bin/make-mac-prefixes.py index ad60948..0550290 100755 --- a/bin/make-mac-prefixes.py +++ b/bin/make-mac-prefixes.py @@ -9,7 +9,9 @@ # Tip: curl https://standards-oui.ieee.org/oui/oui.csv | ./make-mac-prefixes.py # # Author : Esa Jokinen (oh2fih) +# Home : https://github.com/oh2fih/Misc-Scripts # ------------------------------------------------------------------------------ +# flake8: noqa: E501 import sys import os diff --git a/bin/test-cache-enabler.py b/bin/test-cache-enabler.py index 52ab1cc..14b65bf 100755 --- a/bin/test-cache-enabler.py +++ b/bin/test-cache-enabler.py @@ -9,6 +9,7 @@ # Author : Esa Jokinen (oh2fih) # Home : https://github.com/oh2fih/Misc-Scripts # ------------------------------------------------------------------------------ +# flake8: noqa: E501 import sys import re @@ -16,10 +17,10 @@ import urllib.request try: - import validators + import validators # type: ignore except ImportError: - class validators: + class validators: # type: ignore def url(url): return True