From 300fd88394d6f641bbbbbacd3d09ac498b23d4b3 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Wed, 12 Jun 2024 18:59:23 +0200 Subject: [PATCH] Fix `treefmt` errors introduced in #156 Signed-off-by: magic_rb --- buildbot_nix/github_projects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot_nix/github_projects.py b/buildbot_nix/github_projects.py index 6a2a9d5..ec2690d 100644 --- a/buildbot_nix/github_projects.py +++ b/buildbot_nix/github_projects.py @@ -572,7 +572,7 @@ class GithubBackend(GitBackend): if isinstance(self.auth_backend, GithubAppAuthBackend): dropped_repos = list( - filter(lambda repo: not "installation_id" in repo, repos) + filter(lambda repo: "installation_id" not in repo, repos) ) if dropped_repos: tlog.info( @@ -611,7 +611,7 @@ class GithubBackend(GitBackend): all_have_installation_id = True for project in json.loads(self.config.project_cache_file.read_text()): - if not "installation_id" in project: + if "installation_id" not in project: all_have_installation_id = False break