Replace the local flake8 hook with upstream pre-commit-hooks,
autopep8, and openstack/hacking. Add hooks for JSON validation,
shebang/executable consistency, large file detection, and
case-conflict checks.
we use the hacking hook to provide the correct version fo flake8
instead of usign the local flake8 hook and addtionally installing
hacking.
Fix violations caught by the new hooks:
- Remove spurious shebangs from non-executable module files
(fpga and nic prepare_test_data.py, devstack lib and plugin)
- Make tools/flake8wrap.sh executable to match its shebang
- Exclude *-curl.json doc samples from JSON validation (they
contain curl commands, not bare JSON)
- Fix PEP8 blank line spacing in devspec.py and middleware
Generated-By: claude-code sonnet 4.6
Change-Id: Ideda2a6d1f31765484bfacc05ebba0785d427968
Signed-off-by: Sean Mooney <work@seanmooney.info>