Skip to content

Commit

Permalink
Uncommented RUF ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzbrand committed Oct 23, 2024
1 parent 8f922ef commit 8b8a20f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
SECRET_KEY = env.str("SECRET_KEY", "dev_secret_key")

ENV_HOSTS = [host for host in env.str("ALLOWED_HOSTS", "").split(",") if host]
ALLOWED_HOSTS = ENV_HOSTS + ["localhost", ".localhost", "127.0.0.1", "0.0.0.0"]
ALLOWED_HOSTS = [*ENV_HOSTS, "localhost", ".localhost", "127.0.0.1", "0.0.0.0"]
2 changes: 1 addition & 1 deletion config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
PASSWORD_HASHERS = ("django.contrib.auth.hashers.MD5PasswordHasher",)

ENV_HOSTS = [host for host in env.str("ALLOWED_HOSTS", "").split(",") if host]
ALLOWED_HOSTS = ENV_HOSTS + ["localhost", ".localhost", "127.0.0.1", "0.0.0.0"]
ALLOWED_HOSTS = [*ENV_HOSTS, "localhost", ".localhost", "127.0.0.1", "0.0.0.0"]

TRANSFERTO_LOGIN = ("fake_transferto_login",)
TRANSFERTO_TOKEN = ("fake_transferto_token",)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ select = [
# "PT", # flake8-pytest-style
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
# "RUF", # ruff-specific rules
"RUF", # ruff-specific rules
]

ignore = [
"E501", # TODO: Something about these long lines.
"S113", # TODO: Add request timeouts.
"PTH118", # TODO: Switch to pathlib
"RUF012", # We usually want immutable instance attributes
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 8b8a20f

Please sign in to comment.