diff --git a/nix/tools/generate_targets.py b/nix/tools/generate_targets.py index a41b3aeef..609ba029a 100644 --- a/nix/tools/generate_targets.py +++ b/nix/tools/generate_targets.py @@ -10,7 +10,6 @@ import random SECRET = b"reallyreallyreallyreallyverysafe" URL = "http://postgrest" -JWT_DURATION = 120 TOTAL_TARGETS = 50000 # tuned by hand to reduce result variance diff --git a/nix/tools/style.nix b/nix/tools/style.nix index c05e98b6c..1d514580f 100644 --- a/nix/tools/style.nix +++ b/nix/tools/style.nix @@ -7,6 +7,7 @@ , hlint , hsie , nixpkgs-fmt +, python3Packages , silver-searcher , statix , stylish-haskell @@ -63,6 +64,10 @@ let echo "Scanning nix files for unused code..." ${deadnix}/bin/deadnix -f + echo "Scanning python files for unused code..." + ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?py$' . \ + | xargs ${python3Packages.vulture}/bin/vulture --exclude docs/conf.py + echo "Checking consistency of import aliases in Haskell code..." ${hsie} check-aliases main src diff --git a/test/io/test_cli.py b/test/io/test_cli.py index 1499f4f94..ec163f8d3 100644 --- a/test/io/test_cli.py +++ b/test/io/test_cli.py @@ -3,7 +3,6 @@ import contextlib import dataclasses from datetime import datetime -from itertools import repeat from operator import attrgetter import os import pathlib