From 8e9d17cfeb7ea6d10465d4c73b5fac5c3c42aae7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 19:47:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 1 + tender/__init__.py | 1 + tender/__main__.py | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 5b2deab..06ca987 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Kept for partial compatibility with old pip versions.""" + from setuptools import setup setup( diff --git a/tender/__init__.py b/tender/__init__.py index 6a7cef3..94f8a5a 100644 --- a/tender/__init__.py +++ b/tender/__init__.py @@ -1,4 +1,5 @@ """Tender Library""" + from pkg_resources import DistributionNotFound, get_distribution try: diff --git a/tender/__main__.py b/tender/__main__.py index 0c386f4..4a433a0 100755 --- a/tender/__main__.py +++ b/tender/__main__.py @@ -36,7 +36,7 @@ def link(url, name): def nested_dict_to_namespaces(dic): """Code for recursively converting dictionaries of dictionaries - into SimpleNamespaces instead. + into SimpleNamespaces instead. """ def recurse(dic): @@ -199,8 +199,10 @@ def do_pulls(self): ) pr_labels = [p.name for p in pull.get_labels()] if len(self.required_labels.intersection(pr_labels)) == 0: - msg += "\n\tShould have at least one label out of {} but found: {}".format( - ", ".join(self.required_labels), ", ".join(pr_labels) + msg += ( + "\n\tShould have at least one label out of {} but found: {}".format( + ", ".join(self.required_labels), ", ".join(pr_labels) + ) ) print(msg) cnt += 1