style: remove or ignore unused imports

The following files had unused imports removed:
- `scripts/30k-image.py`
- `scripts/dl_icons.py`
- `scripts/redact-cast.py`
This commit is contained in:
MDW 2025-04-16 18:29:07 +02:00
parent 09acfc8147
commit 40a5a88d56
No known key found for this signature in database
4 changed files with 1 additions and 5 deletions

View file

@ -132,7 +132,7 @@ def find_non_self_methods(path):
with open(filename, "r") as file: with open(filename, "r") as file:
try: try:
node = ast.parse(file.read(), filename=filename) node = ast.parse(file.read(), filename=filename)
except: except: # noqa: E722
pass pass
checker = SelfUsageChecker() checker = SelfUsageChecker()
checker.visit(node) checker.visit(node)

View file

@ -7,7 +7,6 @@ This creates a shareable social media graphic with confetti animation.
import argparse import argparse
import base64 import base64
import math import math
import os
import random import random
from pathlib import Path from pathlib import Path

View file

@ -3,7 +3,6 @@
Download Material Design Icons SVGs used in the README and save to local assets. Download Material Design Icons SVGs used in the README and save to local assets.
""" """
import os
from pathlib import Path from pathlib import Path
import requests import requests

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import json import json
import os
import re
import sys import sys
import pyte import pyte