Skip to content
Snippets Groups Projects
Commit 9700495f authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Erwan Rouchet
Browse files

Introduce UP015

parent 388aed29
No related branches found
No related tags found
1 merge request!2307Introduce pyupgrade
This commit is part of merge request !2307. Comments created here will be created in the context of that merge request.
......@@ -54,7 +54,7 @@ class TestLoadExport(FixtureTestCase):
"documents.classification": ["ml_class"],
}
with open(path, "r") as file:
with open(path) as file:
data = json.loads(file.read())
results = []
......
......@@ -31,6 +31,8 @@ select = [
"UP012",
# convert-named-tuple-functional-to-class
"UP014",
# redundant-open-modes
"UP015",
]
ignore = ["E501", "RET502", "RET503"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment