mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
Distros ship newer astyle versions (Ubuntu 26.04: 3.6) which are incompatible with our options and format differently, so make check_format failed out of the box and required manually installing an old .deb. astyle-py bundles astyle 3.1 as WebAssembly and installs via pip on any OS, giving byte-identical results to native 3.1. Native astyle 2.06-3.1 is still accepted as fallback, so existing setups and the current CI container keep working. Files are now formatted in batches on a temporary copy instead of one astyle call per file, which keeps make check_format fast despite the interpreter startup.