Compare commits

...

2 commits

Author SHA1 Message Date
813cc31344 fix ruff 2025-03-18 23:06:57 +00:00
pre-commit-ci[bot]
041f0683a8 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.10...v0.11.0)
- [github.com/astral-sh/uv-pre-commit: 0.6.5 → 0.6.6](https://github.com/astral-sh/uv-pre-commit/compare/0.6.5...0.6.6)
2025-03-18 23:06:57 +00:00
2 changed files with 4 additions and 3 deletions

View file

@ -38,7 +38,7 @@ repos:
hooks:
- id: djhtml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10
rev: v0.11.0
hooks:
- id: ruff
args: [--fix]
@ -61,6 +61,6 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.5
rev: 0.6.6
hooks:
- id: uv-lock

View file

@ -50,7 +50,8 @@ if DEBUG:
INTERNAL_IPS.append(ip)
ALLOWED_HOSTS.append(ip)
except Exception as e:
logging.info("couldn't setup allowed host in debug: %s", e)
logger = logging.getLogger(__name__)
logger.info("couldn't setup allowed host in debug: %s", e)
CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS")