Skip to content

Commit

Permalink
Disable SIM103 and UP032 (mlflow#13087)
Browse files Browse the repository at this point in the history
Signed-off-by: SeanAverS <[email protected]>
Signed-off-by: harupy <[email protected]>
Co-authored-by: harupy <[email protected]>
  • Loading branch information
SeanAverS and harupy committed Sep 9, 2024
1 parent ed58565 commit fdaea68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dev/update_ml_package_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# How to run (make sure you're in the repository root):
$ python dev/update_ml_package_versions.py
"""

import argparse
import json
import re
Expand Down Expand Up @@ -77,7 +78,7 @@ def update_max_version(src, key, new_max_version, category):
minimum: "1.1.1"
maximum: "1.2.1"
"""
pattern = r"((^|\n){key}:.+?{category}:.+?maximum: )\".+?\"".format( # noqa: UP032
pattern = r"((^|\n){key}:.+?{category}:.+?maximum: )\".+?\"".format(
key=re.escape(key), category=category
)
# Matches the following pattern:
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ select = [
"S307", # suspicious-eval-usage
"S324", # hashlib-insecure-hash-function
"SIM101", # duplicate-isinstance-call
"SIM103", # needless-bool
"SIM108", # if-else-block-instead-of-if-exp
"SIM114", # if-with-same-arms
"SIM115", # open-file-with-context-handler
Expand All @@ -224,7 +223,6 @@ select = [
"UP015", # redundant-open-modes
"UP030", # format-literals
"UP031", # printf-string-format
"UP032", # f-string
"UP034", # extraneous-parenthesis
"W", # warning
]
Expand Down

0 comments on commit fdaea68

Please sign in to comment.