mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
[pre-commit.ci] pre-commit autoupdate (#12398)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.5.0) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.10.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
f3f32ae3ca
commit
fc33c50593
@ -124,7 +124,7 @@ if __name__ == "__main__":
|
||||
print("".join(string))
|
||||
|
||||
if op[0] == "C":
|
||||
file.write("%-16s" % "Copy %c" % op[1])
|
||||
file.write("%-16s" % "Copy %c" % op[1]) # noqa: UP031
|
||||
file.write("\t\t\t" + "".join(string))
|
||||
file.write("\r\n")
|
||||
|
||||
@ -132,7 +132,7 @@ if __name__ == "__main__":
|
||||
elif op[0] == "R":
|
||||
string[i] = op[2]
|
||||
|
||||
file.write("%-16s" % ("Replace %c" % op[1] + " with " + str(op[2])))
|
||||
file.write("%-16s" % ("Replace %c" % op[1] + " with " + str(op[2]))) # noqa: UP031
|
||||
file.write("\t\t" + "".join(string))
|
||||
file.write("\r\n")
|
||||
|
||||
@ -140,7 +140,7 @@ if __name__ == "__main__":
|
||||
elif op[0] == "D":
|
||||
string.pop(i)
|
||||
|
||||
file.write("%-16s" % "Delete %c" % op[1])
|
||||
file.write("%-16s" % "Delete %c" % op[1]) # noqa: UP031
|
||||
file.write("\t\t\t" + "".join(string))
|
||||
file.write("\r\n")
|
||||
|
||||
@ -148,7 +148,7 @@ if __name__ == "__main__":
|
||||
else:
|
||||
string.insert(i, op[1])
|
||||
|
||||
file.write("%-16s" % "Insert %c" % op[1])
|
||||
file.write("%-16s" % "Insert %c" % op[1]) # noqa: UP031
|
||||
file.write("\t\t\t" + "".join(string))
|
||||
file.write("\r\n")
|
||||
|
||||
|
Reference in New Issue
Block a user