mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conda.py | ||
| coursier.py | ||
| dart.py | ||
| docker.py | ||
| docker_image.py | ||
| dotnet.py | ||
| fail.py | ||
| golang.py | ||
| haskell.py | ||
| julia.py | ||
| lua.py | ||
| node.py | ||
| perl.py | ||
| pygrep.py | ||
| python.py | ||
| r.py | ||
| ruby.py | ||
| rust.py | ||
| script.py | ||
| swift.py | ||
| system.py | ||