diff --git a/benchmark/refactor_tools.py b/benchmark/refactor_tools.py index 117770a67..03812b0c1 100755 --- a/benchmark/refactor_tools.py +++ b/benchmark/refactor_tools.py @@ -132,7 +132,7 @@ def find_non_self_methods(path): with open(filename, "r") as file: try: node = ast.parse(file.read(), filename=filename) - except: + except: # noqa: E722 pass checker = SelfUsageChecker() checker.visit(node) diff --git a/scripts/30k-image.py b/scripts/30k-image.py index 9a62206e4..4921b3c20 100644 --- a/scripts/30k-image.py +++ b/scripts/30k-image.py @@ -7,7 +7,6 @@ This creates a shareable social media graphic with confetti animation. import argparse import base64 import math -import os import random from pathlib import Path diff --git a/scripts/dl_icons.py b/scripts/dl_icons.py index 8240ca641..7d878c907 100644 --- a/scripts/dl_icons.py +++ b/scripts/dl_icons.py @@ -3,7 +3,6 @@ Download Material Design Icons SVGs used in the README and save to local assets. """ -import os from pathlib import Path import requests diff --git a/scripts/redact-cast.py b/scripts/redact-cast.py index 91f230e87..c7a1e4ea8 100755 --- a/scripts/redact-cast.py +++ b/scripts/redact-cast.py @@ -1,7 +1,5 @@ #!/usr/bin/env python3 import json -import os -import re import sys import pyte