style: format with ruff

This commit is contained in:
Username
2025-12-20 18:32:47 +01:00
parent d0b199de11
commit d364c954d8
2 changed files with 39 additions and 6 deletions

View File

@@ -41,8 +41,10 @@ class Config:
# Require binary content (reject recognizable formats)
# Rejects content with known magic bytes (PNG, JPEG, PDF, etc.) and UTF-8 text.
REQUIRE_BINARY = (
os.environ.get("FLASKPASTE_REQUIRE_BINARY", "0").lower() in ("1", "true", "yes")
REQUIRE_BINARY = os.environ.get("FLASKPASTE_REQUIRE_BINARY", "0").lower() in (
"1",
"true",
"yes",
)
# Reverse proxy trust configuration