Se7enZ
eba330566d
devtools: Set pre-commit default versions for Python and NodeJS.
...
Default to Python 3 and NodeJS to use that which is on the system,
avoiding conflicts with `nodeenv`.
2026-01-24 09:40:49 +10:00
Se7enZ
2fa0feecc5
devtools: Replace Ruff with Flake8 in pre-commit.
2026-01-24 09:40:49 +10:00
Se7enZ
623300d6a3
devtools: Add commitlint to pre-commit.
2026-01-24 09:40:49 +10:00
Se7enZ
5ca181ec89
devtools: Add custom include-order-fixer to pre-commit.
...
Also fixes some exising file spacing issues. Preserves whitespace and
comments.
Assisted by Cursor Auto.
2026-01-24 09:40:49 +10:00
Se7enZ
ee94ba3df9
devtools: Add clang-format to pre-commit.
2026-01-24 09:40:49 +10:00
Se7enZ
e91625a68b
devtools: Add EOF fixer and trailing whitespace fix to pre-commit.
2026-01-24 09:40:49 +10:00
Se7enZ
a22ba9ba52
devtools: Add doc JSON schema checks and formatting to pre-commit.
2026-01-24 09:40:49 +10:00
Se7enZ
969bd22d2f
devtools: Add codespell to pre-commit.
...
Includes default config file and an initial word list to ignore.
2026-01-24 09:40:49 +10:00
Se7enZ
6e50148bcd
devtools: Add discouraged function check to pre-commit.
...
Reimplements `make check-discouraged-functions` for Python regex.
2026-01-24 09:40:49 +10:00
Se7enZ
a04fdb74d9
devtools: Add amount access check to pre-commit.
...
Reimplements `make check-amount-access` for Python regex.
2026-01-24 09:40:49 +10:00
Se7enZ
98c149c797
devtools: Add shellcheck to pre-commit.
2026-01-24 09:40:49 +10:00
Christian Decker
f38cc0e897
chore: Add a simple pre-commit config
...
By limiting the commits that we look at to the changes since `master` we
can incrementally pull files under the coverage of these lints and checks.
Changelog-None: Not applicable, this is DX
2025-04-01 13:33:41 +10:30