File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments