Skip to content

Commit

Permalink
Ruff checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rh0dium committed Jun 29, 2024
1 parent 445cdf7 commit 5191214
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demo_app/demo_app/settings_test.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# -*- coding: utf-8 -*-

import os
import warnings

from .settings import * # noqa: F403,F401

# Handle system warning as log messages
warnings.simplefilter("once")

for handler in LOGGING.get("handlers", []):
LOGGING["handlers"][handler]["level"] = "CRITICAL"
for logger in LOGGING.get("loggers", []):
LOGGING["loggers"][logger]["level"] = "CRITICAL"
for handler in LOGGING.get("handlers", []): # noqa: F405
LOGGING["handlers"][handler]["level"] = "CRITICAL" # noqa: F405
for logger in LOGGING.get("loggers", []): # noqa: F405
LOGGING["loggers"][logger]["level"] = "CRITICAL" # noqa: F405

mysql_db = DATABASES["default"]
mysql_db = DATABASES["default"] # noqa: F405
DEFAULT_DB = {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
Expand Down

0 comments on commit 5191214

Please sign in to comment.