Skip to content

Commit f7843c8

Browse files
committed
Update Ruff to 0.8.0
1 parent aefc890 commit f7843c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: check-docstring-first
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.7.2
25+
rev: v0.8.0
2626
hooks:
2727
- id: ruff
2828
- id: ruff-format

src/cleo/io/inputs/argv_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def has_parameter_option(
9797
# For short options, test for '-o' at beginning
9898
leading = value + "=" if value.startswith("--") else value
9999

100-
if token == value or leading != "" and token.startswith(leading):
100+
if token == value or (leading != "" and token.startswith(leading)):
101101
return True
102102

103103
return False
@@ -129,7 +129,7 @@ def parameter_option(
129129
# For short options, test for '-o' at beginning
130130
leading = value + "=" if value.startswith("--") else value
131131

132-
if token == value or leading != "" and token.startswith(leading):
132+
if token == value or (leading != "" and token.startswith(leading)):
133133
return token[len(leading)]
134134

135135
return False

0 commit comments

Comments
 (0)