Skip to content

Commit

Permalink
new ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
DennyDai committed Mar 1, 2024
1 parent 56042c2 commit a68ca1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dependencies = [
[tool.setuptools.packages.find]
where = ["src"]

[tool.ruff]
[tool.ruff.lint]
extend-select = ["I", "N", "UP", "B"]
2 changes: 1 addition & 1 deletion src/patcherex2/components/archinfo/arm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ArmInfo:
nop_bytes = b"\x00\xF0\x20\xE3" # TODO: thumb
nop_bytes = b"\x00\xf0\x20\xe3" # TODO: thumb
nop_size = 4
jmp_asm = "b {dst}"
jmp_size = 4
Expand Down
4 changes: 2 additions & 2 deletions tests/test_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_remove_instruction_patch_nopie(self):
[
RemoveInstructionPatch(0x1044B, num_bytes=4),
],
expected_output=b"\xF0\x20\xE3",
expected_output=b"\xf0\x20\xe3",
expected_returnCode=0,
)

Expand All @@ -168,7 +168,7 @@ def test_remove_instruction_patch_pie(self):
[
RemoveInstructionPatch(0x5DE, num_bytes=4),
],
expected_output=b"\xF0\x20\xE3",
expected_output=b"\xf0\x20\xe3",
expected_returnCode=0,
)

Expand Down

0 comments on commit a68ca1f

Please sign in to comment.