diff --git a/packages/django-cf/django_cf/db/backends/do/storage.py b/packages/django-cf/django_cf/db/backends/do/storage.py index 401d804c..042e27b8 100644 --- a/packages/django-cf/django_cf/db/backends/do/storage.py +++ b/packages/django-cf/django_cf/db/backends/do/storage.py @@ -2,7 +2,7 @@ def set_storage(db): - global storage + global storage # noqa: PLW0603 storage = db diff --git a/packages/django-cf/pyproject.toml b/packages/django-cf/pyproject.toml index 5397cf87..ff9c51f1 100644 --- a/packages/django-cf/pyproject.toml +++ b/packages/django-cf/pyproject.toml @@ -54,14 +54,6 @@ exclude = ["tests*", "docs*", "templates*", ".github*", "*.__pycache__"] extend = "../../ruff.toml" target-version = "py312" extend-exclude = [".wrangler", "python_modules", "staticfiles"] -lint.extend-ignore = [ - # Deferred: satisfying these requires behavioural or structural changes to - # code imported from https://github.com/G4brym/django-cf, so they are turned - # off to keep the lint adoption commit mechanical. Re-enable one rule per PR. - "PLR0913", # too many arguments; signature change - "PLR2004", # magic value comparison; needs named constants - "PLW0603", # global statement; architectural, see db/backends/do/storage.py -] # Generated Django scaffolding kept verbatim so it stays copy-pasteable. lint.per-file-ignores."tests/servers/**" = ["F401"] lint.per-file-ignores."templates/**" = ["F401"] diff --git a/ruff.toml b/ruff.toml index 98718701..d5012812 100644 --- a/ruff.toml +++ b/ruff.toml @@ -20,6 +20,7 @@ ignore = [ "C901", # Too complex "E501", # Line too long "PLR0911", # Too many return statements + "PLR0913", # Too many arguments "PLR0915", # Too many statements "PLR2004", # Magic value "PLW2901", # loop variable overwritten by assignment