mirror of
https://github.com/flibusta-apps/services_manager_server.git
synced 2025-12-06 12: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"]
|
||||
|
||||
@@ -57,6 +57,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,5 +1,5 @@
|
||||
import sentry_sdk
|
||||
from fastapi import FastAPI
|
||||
import sentry_sdk
|
||||
|
||||
from app.views import router
|
||||
from core.config import env_config
|
||||
|
||||
Reference in New Issue
Block a user