fix(api/linter): Ignore module imports in init
This commit is contained in:
@@ -22,7 +22,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
ignore = ['E402']
|
ignore = ['E402'] # module import not at top of file
|
||||||
|
|
||||||
[tool.uv.sources]
|
[tool.uv.sources]
|
||||||
aiohttp-client-cache = { git = "https://github.com/TheOnlyWayUp/aiohttp-client-cache.git", rev = "keydb-ttl" }
|
aiohttp-client-cache = { git = "https://github.com/TheOnlyWayUp/aiohttp-client-cache.git", rev = "keydb-ttl" }
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# ruff: noqa: F401
|
||||||
|
|
||||||
from .create_book import (
|
from .create_book import (
|
||||||
fetch_story,
|
fetch_story,
|
||||||
fetch_story_from_partId,
|
fetch_story_from_partId,
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
# ruff: noqa: F401
|
||||||
|
|
||||||
from epub import EPUBGenerator
|
from epub import EPUBGenerator
|
||||||
from pdf import PDFGenerator
|
from pdf import PDFGenerator
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ from fastapi.responses import (
|
|||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from create_book import (
|
from create_book import (
|
||||||
EPUBGenerator,
|
EPUBGenerator,
|
||||||
PDFGenerator,
|
|
||||||
fetch_story,
|
fetch_story,
|
||||||
fetch_story_from_partId,
|
fetch_story_from_partId,
|
||||||
fetch_story_content_zip,
|
fetch_story_content_zip,
|
||||||
|
|||||||
Reference in New Issue
Block a user