diff options
author | Ben Sima <ben@bsima.me> | 2025-02-06 17:40:53 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2025-02-06 17:40:53 -0500 |
commit | 1f9787cf112ebc82be6000c4bd1c09b7dc88c319 (patch) | |
tree | 2fdffaa8386d5f931e1b071fd6744ddc02d54a20 /Biz/Dragons | |
parent | 42d9c462002740a6a5cf8edb8fcfd00bcc36bb4b (diff) |
Update nixpkgs and stupid fixes
Some things got through the CI system, probably during updates. So I had more
stupid little fixes to do. I should really improve bild to the point that these
won't happen anymore and builds don't take so long.
Diffstat (limited to 'Biz/Dragons')
-rwxr-xr-x | Biz/Dragons/main.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Biz/Dragons/main.py b/Biz/Dragons/main.py index 0cb4554..5e7a1c8 100755 --- a/Biz/Dragons/main.py +++ b/Biz/Dragons/main.py @@ -12,6 +12,8 @@ import subprocess import sys import typing +LOG = logging.getLogger(__name__) + def find_user(line: str) -> typing.Any: """ @@ -154,7 +156,7 @@ class Repo: .split() if not any(i in p for i in ignored_paths) ] - logging.debug("collecting stats") + LOG.debug("collecting stats") self.stats = {} for path in self.paths: self.stats[path] = authors_for(path, active_users) @@ -171,9 +173,9 @@ class Repo: self.stale = {} max_staleness = 180 for path in self.stats: - _staleness = staleness(path, now) - if _staleness > max_staleness: - self.stale[path] = _staleness + staleness_ = staleness(path, now) + if staleness_ > max_staleness: + self.stale[path] = staleness_ def print_blackholes(self: "Repo", *, full: bool) -> None: """Print number of blackholes, or list of all blackholes.""" @@ -232,9 +234,9 @@ def main() -> None: if args.test: sys.stdout.write("ok") sys.exit() - logging.basicConfig(stream=sys.stderr, level=args.verbosity.upper()) - logging.debug("starting") + logging.basicConfig(stream=sys.stderr, level=args.verbosity.upper()) + LOG.debug("starting") os.chdir(pathlib.Path(args.repo).resolve()) guard_git(args.repo) |