Skip to content

Commit

Permalink
Run ruff check --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quis committed Jul 30, 2024
1 parent 0ade9a1 commit 2cb051f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cb051f

Please sign in to comment.