Skip to content

Commit 2407324

Browse files
authored
Fixed ruff check errors
1 parent 6f85077 commit 2407324

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ctfcli/core/challenge.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def is_default_challenge_property(key: str, value: Any) -> bool:
9595
if key == "attempts" and value == 0:
9696
return True
9797

98-
if key == "require_anonymize" and value == False:
98+
if key == "require_anonymize" and value is False:
9999
return True
100100

101101
if key == "state" and value == "visible":
@@ -439,7 +439,7 @@ def _set_required_challenges(self):
439439
required_challenges.remove(self.challenge_id)
440440
required_challenges.sort()
441441

442-
if self.get("require_anonymize") == None:
442+
if self.get("require_anonymize") is None:
443443
self["require_anonymize"] = False
444444

445445
requirements_payload = {
@@ -1032,7 +1032,7 @@ def verify(self, ignore: Tuple[str] = ()) -> bool:
10321032
for remote_file_name in remote_files:
10331033
if remote_file_name not in local_files:
10341034
click.secho(
1035-
f"{remote_file_namne} is not in local challenge.",
1035+
f"{remote_file_name} is not in local challenge.",
10361036
fg="yellow",
10371037
)
10381038
return False
@@ -1045,7 +1045,7 @@ def verify(self, ignore: Tuple[str] = ()) -> bool:
10451045

10461046
if local_file_sha1sum != remote_file_sha1sum:
10471047
click.secho(
1048-
f"sha1sum does not match with remote one.",
1048+
"sha1sum does not match with remote one.",
10491049
fg="yellow",
10501050
)
10511051
return False
@@ -1060,7 +1060,7 @@ def verify(self, ignore: Tuple[str] = ()) -> bool:
10601060

10611061
if remote_file_contents != local_file_contents:
10621062
click.secho(
1063-
f"the file content does not match with the remote one.",
1063+
"the file content does not match with the remote one.",
10641064
fg="yellow",
10651065
)
10661066
return False

0 commit comments

Comments
 (0)