Commit bd6bd46
committed
Fix remaining lint errors on main
- mypy: django-stubs 6.0.3 still flagged validate_v3_migration.py after
PR #1367's `.values_list(...)` refactor because calling `.values_list()`
on an annotated ValuesQuerySet types the result as the annotated model,
not a tuple iterable. Materialise the slice via `cast(list[tuple[...]],
list(...))` so the for-loop destructures a concrete tuple.
- prettier: `public/env-config.js` is a gitignored artefact produced by
`env.sh` at container start. It was tripping `yarn lint` locally even
though it never exists in CI. Add it to .prettierignore so the ignore
surface matches .gitignore.
Verified by running `pre-commit run --all-files` (all hooks pass) and
`yarn lint` in frontend/ (prettier clean).1 parent d9709c4 commit bd6bd46
2 files changed
Lines changed: 10 additions & 3 deletions
File tree
- frontend
- opencontractserver/documents/management/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
| |||
0 commit comments