mirror of
https://github.com/flibusta-apps/fb2converter_server.git
synced 2025-12-06 06:55:36 +01:00
Add isort force-sort-within-sections
This commit is contained in:
@@ -8,7 +8,7 @@ repos:
|
|||||||
language_version: python3.11
|
language_version: python3.11
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: 'v0.0.213'
|
rev: 'v0.0.216'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--force-exclude"]
|
args: ["--force-exclude"]
|
||||||
|
|||||||
@@ -3,16 +3,16 @@ import os
|
|||||||
import os.path
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
import uuid
|
|
||||||
from typing import AsyncIterator, Optional
|
from typing import AsyncIterator, Optional
|
||||||
|
import uuid
|
||||||
|
|
||||||
import aiofiles
|
import aiofiles
|
||||||
import aiofiles.os
|
import aiofiles.os
|
||||||
import aiofiles.ospath
|
import aiofiles.ospath
|
||||||
import sentry_sdk
|
|
||||||
from fastapi import APIRouter, FastAPI, File, Form, HTTPException, UploadFile, status
|
from fastapi import APIRouter, FastAPI, File, Form, HTTPException, UploadFile, status
|
||||||
from fastapi.responses import StreamingResponse
|
from fastapi.responses import StreamingResponse
|
||||||
from fastapi_utils.tasks import repeat_every
|
from fastapi_utils.tasks import repeat_every
|
||||||
|
import sentry_sdk
|
||||||
|
|
||||||
from config import env_config
|
from config import env_config
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ extend-immutable-calls = ["fastapi.File", "fastapi.Form"]
|
|||||||
max-complexity = 15
|
max-complexity = 15
|
||||||
|
|
||||||
[tool.ruff.isort]
|
[tool.ruff.isort]
|
||||||
|
force-sort-within-sections = true
|
||||||
# only_sections = true
|
# only_sections = true
|
||||||
# force_sort_within_sections = true
|
# force_sort_within_sections = true
|
||||||
# lines_after_imports = 2
|
# lines_after_imports = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user