aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-01-26 10:36:11 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-01-26 10:36:11 +0200
commitfb4dc9bbf2b51732aa4a254d8ba18c0235f8d70c (patch)
treeb9e286bcf83dd0e55d4e0a819c1f4f4d72b320a9 /src
parentstart work on 0.10.28 (diff)
downloadpkgcheck-fb4dc9bbf2b51732aa4a254d8ba18c0235f8d70c.tar.gz
pkgcheck-fb4dc9bbf2b51732aa4a254d8ba18c0235f8d70c.tar.bz2
pkgcheck-fb4dc9bbf2b51732aa4a254d8ba18c0235f8d70c.zip
reformat with black 24
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/pkgcheck/checks/whitespace.py3
-rw-r--r--src/pkgcheck/scripts/pkgcheck_scan.py7
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pkgcheck/checks/whitespace.py b/src/pkgcheck/checks/whitespace.py
index 9987cf7e..247e8f85 100644
--- a/src/pkgcheck/checks/whitespace.py
+++ b/src/pkgcheck/checks/whitespace.py
@@ -7,8 +7,7 @@ from .. import results, sources
from . import Check, OptionalCheck
-class _Whitespace(results.LinesResult, results.Style):
- ...
+class _Whitespace(results.LinesResult, results.Style): ...
class WhitespaceFound(_Whitespace):
diff --git a/src/pkgcheck/scripts/pkgcheck_scan.py b/src/pkgcheck/scripts/pkgcheck_scan.py
index c04ff329..7c11f810 100644
--- a/src/pkgcheck/scripts/pkgcheck_scan.py
+++ b/src/pkgcheck/scripts/pkgcheck_scan.py
@@ -371,9 +371,10 @@ def _setup_scan(parser, namespace, args):
# have to be parsed twice, will probably require a custom snakeoil
# arghparse method.
# parse command line args to override config defaults
- with patch(
- "pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None
- ), patch("pkgcheck.scripts.argparse_actions.ExitArgs.__call__", lambda *a, **k: None):
+ with (
+ patch("pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None),
+ patch("pkgcheck.scripts.argparse_actions.ExitArgs.__call__", lambda *a, **k: None),
+ ):
namespace, _ = parser._parse_known_args(args, namespace)
# Get the current working directory for repo detection and restriction