Cache site with Redis

This commit is contained in:
Joakim Hellsén 2024-01-30 03:12:04 +01:00
commit 32e9ccb413
3 changed files with 62 additions and 9 deletions

View file

@ -40,9 +40,9 @@ unsafe-fixes = true
preview = true
select = ["ALL"]
ignore = [
"CPY001", # Missing copyright notice at top of file
"ERA001", # Found commented-out code
"FIX002", # Line contains TODO
"CPY001", # Missing copyright notice at top of file
"ERA001", # Found commented-out code
"FIX002", # Line contains TODO
]
line-length = 120
@ -51,10 +51,10 @@ convention = "google"
[tool.ruff.per-file-ignores]
"**/tests.py" = [
"S101", # Allow asserts
"ARG", # Allow unused arguments
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"PLR2004", # Allow "assert response.status_code == 200" when testing views
"D102", # Allow missing docstrings in tests
"PLR6301", # Checks for the presence of unused self parameter in methods definitions.
"S101", # Allow asserts
"ARG", # Allow unused arguments
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"PLR2004", # Allow "assert response.status_code == 200" when testing views
"D102", # Allow missing docstrings in tests
"PLR6301", # Checks for the presence of unused self parameter in methods definitions.
]