nix: detect unused python code

Now `postgrest-lint` shows:

```
Linting workflows...
Scanning nix files for unused code...
Scanning python files for unused code...
nix/tools/generate_targets.py:13: unused variable 'JWT_DURATION' (60% confidence)
test/io/test_cli.py:6: unused import 'repeat' (90% confidence)
```

Also corrected the above detected files
This commit is contained in:
steve-chavez
2025-06-03 20:47:39 -05:00
committed by Steve Chavez
parent dc46aea15e
commit b2f8786821
3 changed files with 5 additions and 2 deletions
-1
View File
@@ -3,7 +3,6 @@
import contextlib
import dataclasses
from datetime import datetime
from itertools import repeat
from operator import attrgetter
import os
import pathlib