Skip to content

Commit 26dd9b7

Browse files
Update ruff & fix import lint error (#543)
1 parent 93c22fd commit 26dd9b7

3 files changed

Lines changed: 366 additions & 368 deletions

File tree

config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,6 @@ def run_setup() -> None:
828828
logger.debug("Begin database setup")
829829

830830
importlib.import_module("db")
831-
from django.core import management
832-
833-
management.call_command("migrate")
831+
importlib.import_module("django.core.management").call_command("migrate")
834832

835833
logger.debug("Database setup completed")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dev = [
55
{ include-group = "test" },
66
{ include-group = "type-check" },
77
]
8-
lint-format = ["ccft-pymarkdown>=2.0", "ruff>=0.9"]
8+
lint-format = ["ccft-pymarkdown>=2.0", "ruff>=0.12"]
99
main = [
1010
"asyncstdlib>=3.13",
1111
"beautifulsoup4>=4.12",

0 commit comments

Comments
 (0)