mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2025-12-06 06:35:39 +01:00
Add isort force-sort-within-sections
This commit is contained in:
@@ -8,7 +8,7 @@ repos:
|
||||
language_version: python3.11
|
||||
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: 'v0.0.213'
|
||||
rev: 'v0.0.216'
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: ["--force-exclude"]
|
||||
|
||||
@@ -63,6 +63,7 @@ max-complexity = 15
|
||||
|
||||
[tool.ruff.isort]
|
||||
known-first-party = ["core", "app"]
|
||||
force-sort-within-sections = true
|
||||
|
||||
# only_sections = true
|
||||
# force_sort_within_sections = true
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from typing import Optional, Union
|
||||
|
||||
import orjson
|
||||
from fastapi import HTTPException, status
|
||||
import orjson
|
||||
from redis import asyncio as aioredis
|
||||
|
||||
from app.models import User
|
||||
|
||||
Reference in New Issue
Block a user