A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Rodney, Tiara c68a3ba59f
refactor(languages/conda): adapt scripts path resolution
Cygwin isn't the only edge-case for a differing bin/ path. In addition there
also is MSYS2, which behaves differently than Cygwin. CPython compiled against
Microsoft Visual C++ Runtime (MSVCRT) through MinGW, will correctly identify as
an 'nt' platform, yet will prefer a POSIX path scheme.

In order to avoid having to patch every edge-case, we can spy on the system
configurations install paths through the `sysconfig` module and get the basename
of the global scripts path, which will be returned in accordance with the
preferred install path scheme of the system/platform.

Fixes: https://github.com/pre-commit/pre-commit/issues/3448
2025-04-15 16:05:16 +02:00
.github upgrade asottile/workflows 2025-01-30 14:58:50 -05:00
pre_commit refactor(languages/conda): adapt scripts path resolution 2025-04-15 16:05:16 +02:00
testing remove unused type ignore 2024-10-21 20:35:56 -04:00
tests adjust python default_language_version to prefer versioned exe 2025-03-18 14:55:24 -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-03-31 19:43:51 +00:00
.pre-commit-hooks.yaml deprecate pre-commit-validate-{config,manifest} 2022-04-24 19:08:47 -04:00
CHANGELOG.md v4.2.0 2025-03-18 17:34: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 [pre-commit.ci] auto fixes from pre-commit.com hooks 2025-03-31 19:44:12 +00: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/