Skip to content

Commit

Permalink
Fix Ruff cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
rh0dium committed Jun 29, 2024
1 parent b03bdce commit 2a3c37e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions demo_app/demo_app/settings_test.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# -*- 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 2a3c37e

Please sign in to comment.