Skip to content

Commit

Permalink
ignore intentional flake8 & mypy errors
Browse files Browse the repository at this point in the history
- flake8 E501: using line length 88 from black formatting
- some individual mypy ignores
  • Loading branch information
oh2fih committed Jul 29, 2024
1 parent 5bca9ac commit f623eaa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bin/follow-cvelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# Author : Esa Jokinen (oh2fih)
# Home : https://github.com/oh2fih/Misc-Scripts
# ------------------------------------------------------------------------------
# flake8: noqa: E501

import argparse
import json
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions bin/make-mac-prefixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions bin/test-cache-enabler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
# Author : Esa Jokinen (oh2fih)
# Home : https://github.com/oh2fih/Misc-Scripts
# ------------------------------------------------------------------------------
# flake8: noqa: E501

import sys
import re
import os
import urllib.request

try:
import validators
import validators # type: ignore
except ImportError:

class validators:
class validators: # type: ignore
def url(url):
return True

Expand Down

0 comments on commit f623eaa

Please sign in to comment.