aboutsummaryrefslogtreecommitdiff
path: root/githooks/pre-commit
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 01:07:49 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 01:07:49 -0500
commit7a919adde087f5c1150c15faf88f6cda7c7b90b6 (patch)
tree4d6f66ec2ede3c6688157fc072e4d3f9fea05c7d /githooks/pre-commit
parentb414587449e81043d4907c5c596cc586478ec559 (diff)
downloaddotemacs-7a919adde087f5c1150c15faf88f6cda7c7b90b6.tar.gz
dotemacs-7a919adde087f5c1150c15faf88f6cda7c7b90b6.zip
test(prog-python+webdev): cover the per-buffer setup mode hooks
`cj/python-setup` and `cj/webdev-setup` are the per-buffer preference functions wired into `python-ts-mode` / `typescript-ts-mode` / `tsx-ts-mode` / `js-ts-mode`. Sibling tests covered the command builders and prettier/mypy wrappers but not these. 9 new tests across two files cover, for each setup: - the setq-local pairs (fill-column, tab-width, standard-indent, indent-tabs-mode) land at the language's defaults (Python: 80/4/4/nil; webdev: 100/2/2/nil), - the mode helpers (company, flyspell-prog, superword, electric-pair-local) all get called, - LSP gating: starts when the language server binary is on PATH, skips otherwise. Plus a check that `cj/webdev-keybindings` binds `C-; f` to the prettier wrapper. External modes and `executable-find` / `lsp-deferred` are stubbed so the tests run without a Python or Node toolchain.
Diffstat (limited to 'githooks/pre-commit')
0 files changed, 0 insertions, 0 deletions