Skip to content

Commit 30ff98c

Browse files
author
Alex Baranov
committed
style: Remove noqa PLC0415 annotations from conditional imports
Simplify inline comments on conditional imports by removing the ruff-specific noqa directives while preserving the descriptive comments explaining why the imports are conditional.
1 parent e1ff97f commit 30ff98c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/python/initial_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def runSetup(download, insecure_ssl=False):
180180
else:
181181
print(f" Generating NAD taxonomy from {nad_zip}")
182182
print(" This processes ~92M address records and may take several minutes...")
183-
from generateNADTaxonomies import generate_nad_taxonomy # noqa: PLC0415 - conditional import, only needed when NAD data exists
183+
from generateNADTaxonomies import generate_nad_taxonomy # conditional import, only needed when NAD data exists
184184

185185
generate_nad_taxonomy(parent)
186186
print(f" NAD taxonomy generation complete: {nad_taxonomy}")
@@ -213,7 +213,7 @@ def download(self):
213213
else:
214214
try:
215215
# Try to use certifi bundle if available
216-
import certifi # noqa: PLC0415 - conditional import for optional dependency
216+
import certifi # conditional import for optional dependency
217217

218218
print(" Using certifi SSL certificates")
219219
ssl_context = ssl.create_default_context(cafile=certifi.where())

0 commit comments

Comments
 (0)