ashwin31
a18dfaf808
fix: resolve remaining Prospector static analysis issues (416 → 0)
...
Add .prospector.yaml config to suppress Django/DRF false positives,
replace custom reverse_noop with migrations.RunPython.noop, move
deferred imports to module top level, and fix genuine unused
import/variable issues.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 14:21:56 +05:30
ashwin31
687fd9244f
fix: resolve 222 Prospector static analysis issues across backend
...
- Fix missing `import json` in leads and opportunity views (runtime bugs)
- Remove ~60 unused imports across 30+ files
- Remove unused variables and dead code assignments
- Convert f-string logging to lazy % formatting (41 instances)
- Chain exceptions with `from exc` for proper tracebacks
- Replace mutable default arguments with None guards
- Fix invalid escape sequences, set comprehensions, f-strings
- Remove unnecessary else/elif after return/raise/continue
- Modernize: super() without args, remove object inheritance
- Replace wildcard import with explicit imports in contacts/views
- Fix wrong-import-position in invoices and auth views
- Add noqa comments for intentional side-effect imports
- Add encoding parameter to open() call
- Fix renamed parameter in serializer validate override
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 14:00:19 +05:30