Apply ruff

This commit is contained in:
adisbladis 2023-07-21 13:25:44 +12:00 committed by mergify[bot]
parent 276b68bade
commit fcaf7773e3
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,7 @@
"-eucx"
''
${pkgs.lib.getExe pkgs.python3.pkgs.black} "$@"
${pkgs.lib.getExe pkgs.ruff} --fix "$@"
''
"--" # this argument is ignored by bash
];

View file

@ -55,7 +55,8 @@ def test_flake() -> None:
def test_query_cache_status() -> None:
results = common_test(["--flake", ".#hydraJobs", "--check-cache-status"])
# FIXME in the nix sandbox we cannot query binary caches, this would need some local one
# FIXME in the nix sandbox we cannot query binary caches
# this would need some local one
for result in results:
assert "isCached" in result