aboutsummaryrefslogtreecommitdiffstats
path: root/idatui/remote_ops.py (unfollow)
Commit message (Collapse)AuthorFilesLines
7 daysreformat: ruff format + import sort, mechanically (see ruff.toml)blasty1-16/+61
No behavior. Listed in .git-blame-ignore-revs (next commit).
7 daysadopt ruff: pinned formatter + import sorting, opt-in pre-commit hookblasty1-1/+0
PR #1 arrived black-formatted, which forced the question. ruff's formatter is black's output, it is one static binary rather than a dependency chain, and it is fast enough that a hook is free. ruff.toml pins the version (a formatter whose output moves between releases turns 'formatted' into 'formatted by whoever committed last') and selects only import sorting on the lint side -- a hook that refused a commit over an unused variable would be a different feature. .githooks/pre-commit (install: git config core.hooksPath .githooks) formats exactly what is staged, refuses partly-staged files rather than quietly widening a commit built with git add -p, and prefers the pinned .venv ruff. Also drops the blanket '# ruff: noqa' PR #1 left in remote_ops.py -- it would have exempted that file from the only lint rule we enforce.
7 daystests: repair the two seams the ida-nexus port left behindblasty1-2/+17
Two scenario monkeypatch sites still hooked client.invoke -- the rename to call() updated the call sites but not the patches, so reprime_is_free and split_view crashed instead of counting. call() takes the remote_ops declaration itself now, so both count by its __name__. remote_ops imported RemoteModule inside _bindings(), which made test_nexus_client (NEEDS_IDA = False) unrunnable under a stdlib-only python3 -- the house rule tests/run.py --fast depends on. The import moves to the same eagerly-if-present, bound-to-None-so-patchable contract nexus_client uses, and the test injects FakeRemoteModule/FakeRemoteError exactly like its other fakes: real names when the library is installed, strict fakes when it is not.
8 daysSwitch to ida-nexusDuncan Ogilvie1-2/+2
8 daysAdopt idb_events and remote module features from ida-codemodeDuncan Ogilvie1-0/+1683