fix(api/linter): Ignore module imports in init

This commit is contained in:
TheOnlyWayUp
2025-06-04 11:55:23 +00:00
parent 713c8071fb
commit 10d8a8f308
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ dependencies = [
]
[tool.ruff.lint]
ignore = ['E402']
ignore = ['E402'] # module import not at top of file
[tool.uv.sources]
aiohttp-client-cache = { git = "https://github.com/TheOnlyWayUp/aiohttp-client-cache.git", rev = "keydb-ttl" }
+2
View File
@@ -1,3 +1,5 @@
# ruff: noqa: F401
from .create_book import (
fetch_story,
fetch_story_from_partId,
@@ -1,2 +1,4 @@
# ruff: noqa: F401
from epub import EPUBGenerator
from pdf import PDFGenerator
-1
View File
@@ -17,7 +17,6 @@ from fastapi.responses import (
from fastapi.staticfiles import StaticFiles
from create_book import (
EPUBGenerator,
PDFGenerator,
fetch_story,
fetch_story_from_partId,
fetch_story_content_zip,