diff options
| author | blasty <peter@haxx.in> | 2026-08-21 12:14:27 +0200 |
|---|---|---|
| committer | blasty <peter@haxx.in> | 2026-08-21 12:14:27 +0200 |
| commit | 93ca90558aa6016e77625c627a70640e693e3303 (patch) | |
| tree | 284dfb0d126aefd0bb69f517ec64ca12d2130bcb /tools/verify_procs.py | |
| parent | tests: repair the two seams the ida-nexus port left behind (diff) | |
| download | ida-tui-93ca90558aa6016e77625c627a70640e693e3303.tar.gz ida-tui-93ca90558aa6016e77625c627a70640e693e3303.tar.xz ida-tui-93ca90558aa6016e77625c627a70640e693e3303.zip | |
adopt ruff: pinned formatter + import sorting, opt-in pre-commit hook
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.
Diffstat (limited to 'tools/verify_procs.py')
0 files changed, 0 insertions, 0 deletions
