A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Matan Shavit f3cfed73f7
Increase Bun language test coverage to 100%
Add comprehensive unit tests to cover all code paths in the Bun
language implementation:

- Platform detection tests for darwin, linux, windows, and unsupported
  platforms
- Version normalization tests for all format variations (default,
  plain numbers, v-prefix, bun-v-prefix)
- HTTP error handling tests for 404 and other error codes
- Binary extraction edge case tests for missing directories and
  missing executables
- System version installation path test to verify binary download
  is skipped when using system bun

Coverage increased from 87% to 100% with no lines or branches missing.
All tests use mocks to avoid requiring network calls or platform-specific
behavior, ensuring fast and reliable test execution.
2025-10-28 21:54:46 -04:00
.github Add Bun setup step to GitHub Actions workflow 2025-10-28 21:27:21 -04:00
pre_commit Add Bun language support 2025-10-28 21:15:51 -04:00
testing Add Bun language support 2025-10-28 21:15:51 -04:00
tests Increase Bun language test coverage to 100% 2025-10-28 21:54:46 -04:00
.gitignore remove unneeded gitignore lines 2022-03-13 19:55:30 -04:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2025-10-13 20:38:45 +00:00
.pre-commit-hooks.yaml deprecate pre-commit-validate-{config,manifest} 2022-04-24 19:08:47 -04:00
CHANGELOG.md v4.3.0 2025-08-09 14:54:49 -04:00
CONTRIBUTING.md fix typo in CONTRIBUTING.md 2023-08-14 11:00:17 +01:00
LICENSE MIT 2014-06-05 08:57:40 -07:00
README.md azure pipelines -> github actions 2022-12-29 22:18:31 -05:00
requirements-dev.txt always use #!/bin/sh on windows 2022-01-05 13:22:49 -05:00
setup.cfg fix deprecated call 2025-10-16 10:23:30 -04:00
setup.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
tox.ini show 20 slowest durations in CI 2023-03-09 11:00:31 -05:00

build status pre-commit.ci status

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/