You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: consolidate Python lint stack on Ruff + mypy + bandit (#651, #652)
Remove Black, standalone isort, and flake8 entirely — their config
blocks, dev dependencies, and scripts/lint.sh steps. Ruff now owns lint
+ format + import order (the `I` rules); mypy and bandit run alongside.
This resolves the three-formatter conflict and the Black 24-vs-26 pin
skew (#452).
Enable a strict mypy subset on the package (disallow_untyped_defs,
warn_return_any) and wire the now-green Python lint gate (ruff check +
ruff format --check + mypy + bandit) into backend CI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: fix stale comments and tighten typing (#654, #655)
- Remove the misleading "Real implementation lands in PR #2" note on the
shipped _PackageSettings dataclass and a dead `# noqa: ARG002` line in
views.py that suppressed nothing (#654). (audit.py dead-code removal
landed in the preceding lint-stack commit.)
- Type the admin_site view helpers as AdminSite (type-only import, so the
package still works with django.contrib.admin removed) and add the
missing `from typing import Any` to tests/test_spa_index.py (F821) (#655).
- Normalize residual lint debt (import order + slice/assert formatting)
across tests and templatetags now that the gate is green (#651).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: repoint dangling doc references and add a doc-ref guard (#653)
Repoint or remove docstring / comment / pre-commit citations to docs that
no longer exist (docs/ux/pwa.md, pwa.md, theming.md, ACCEPTANCE.md,
REVIEW_CHECKLIST.md, docs/threat-model.md) so they target the surviving
ARCHITECTURE.md / SECURITY.md sections. (conf.py's docs/ux/pwa.md cites
were fixed alongside the comment cleanup in the preceding commit.)
Add tests/test_doc_refs.py plus a pre-commit hook that fails when a *.md
file or §N section cited in the package source, tests, or
.pre-commit-config.yaml no longer exists, so this defect class can't
recur. Also drop the black + isort pre-commit hooks per #651/#652.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(frontend): enforce no-explicit-any and tidy JSDoc (#656)
- Flip @typescript-eslint/no-explicit-any from 'off' to 'error' to lock
in the existing zero-`any` state; no violations surfaced.
- Remove the stale .eslintrc.cjs entry from the flat-config ignores.
- Add /** JSDoc to the Checkbox, Input, Spinner, EmptyState, and
DateHierarchyBar primitives for doc consistency.
Verified: pnpm lint:js, pnpm lint:css, pnpm typecheck all pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add CHANGELOG with [Unreleased] entries for the audit fixes (#651-#656)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Martin Castro Laminrs <mcastro@laminr.ai>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments