Update Ruff and fix its errors
This commit is contained in:
parent
c54ceeb7a8
commit
1424978854
39 changed files with 183 additions and 175 deletions
|
|
@ -16,7 +16,7 @@ def celery_app() -> Generator[Celery, Any]:
|
|||
Yields:
|
||||
Celery: A Celery app instance configured for testing.
|
||||
"""
|
||||
with patch("os.environ.setdefault") as mock_setenv: # noqa: F841
|
||||
with patch("os.environ.setdefault") as mock_setenv: # ruff:ignore[unused-variable]
|
||||
app = Celery("config")
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
yield app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue