ruff: process remaining existing checks and suppress the annoying ones

This commit is contained in:
Dima Gerasimov 2024-08-28 03:58:28 +01:00
parent c248aa7496
commit 1774ed126b
6 changed files with 38 additions and 8 deletions

View file

@ -178,12 +178,12 @@ def repos() -> List[Path]:
# returns modification time for an index to use as hash function
def _repo_depends_on(_repo: Path) -> int:
for pp in {
for pp in [
".git/FETCH_HEAD",
".git/HEAD",
"FETCH_HEAD", # bare
"HEAD", # bare
}:
]:
ff = _repo / pp
if ff.exists():
return int(ff.stat().st_mtime)