mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
A framework for managing and maintaining multi-language pre-commit hooks.
os.getcwd() returns the real path of the current working directory. In a directory which has been symlinked this does not necessarily match the same prefix of the current directory. When os.getcwd() is cd-ed to relativize path names a few lines below this results in paths which are relative to symlinked tree, not to the real tree. This makes path rule matches fail. Use os.path.realpath() when making paths absolute, so that relative paths refer to the same tree as os.getcwd() |
||
|---|---|---|
| .github | ||
| pre_commit | ||
| testing | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .pre-commit-hooks.yaml | ||
| azure-pipelines.yml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| requirements-dev.txt | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
pre-commit
A framework for managing and maintaining multi-language pre-commit hooks.
For more information see: https://pre-commit.com/