Skip to content

Commit 214d751

Browse files
[pre-commit.ci] pre-commit autoupdate (#132)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ec117c1 commit 214d751

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
args: ['--application-directories=.:src']
1717
name: reorder python imports
1818
- repo: https://github.com/psf/black
19-
rev: 23.12.1
19+
rev: 24.1.1
2020
hooks:
2121
- id: black
2222
args: [--safe, --quiet]

src/pytest_cpp/catch2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ def get_catch_version(
5454
return (
5555
Catch2Version.V2
5656
if "--list-test-names-only" in output
57-
else Catch2Version.V3
58-
if "--list-tests" in output
59-
else None
57+
else Catch2Version.V3 if "--list-tests" in output else None
6058
)
6159

6260
@classmethod

0 commit comments

Comments
 (0)