From 2cb051fd4128704308fb65e7ce6eae9becaf0b33 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 30 Jul 2024 10:16:55 +0100 Subject: [PATCH] Run ruff check --fix --- app/commands.py | 2 +- app/config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/commands.py b/app/commands.py index 6f92aab..8359a7a 100644 --- a/app/commands.py +++ b/app/commands.py @@ -6,7 +6,7 @@ def list_routes(): """List URLs of all application routes.""" for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule): - print("{:10} {}".format(", ".join(rule.methods - set(["OPTIONS", "HEAD"])), rule.rule)) + print("{:10} {}".format(", ".join(rule.methods - {"OPTIONS", "HEAD"}), rule.rule)) def setup_commands(application): diff --git a/app/config.py b/app/config.py index bdc0574..6e36a6f 100644 --- a/app/config.py +++ b/app/config.py @@ -3,12 +3,12 @@ from kombu import Exchange, Queue -class QueueNames(object): +class QueueNames: LETTERS = "letter-tasks" ANTIVIRUS = "antivirus-tasks" -class Config(object): +class Config: STATSD_ENABLED = True STATSD_HOST = os.getenv("STATSD_HOST") STATSD_PORT = 8125