A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Yuri D'Elia 1bf65b37c6 Use os.path.realpath() for path canonicalization
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()
2021-10-02 19:17:35 +02:00
.github add a bug report issue form 2021-09-06 15:01:42 -04:00
pre_commit Use os.path.realpath() for path canonicalization 2021-10-02 19:17:35 +02:00
testing Add: post-rewrite hook support 2021-09-01 14:50:59 -05:00
tests make sure to not discard changes even if submodule.recurse=1 2021-10-01 18:45:36 -04:00
.gitignore add initial dotnet support 2020-09-27 15:04:35 -07:00
.pre-commit-config.yaml v2.15.0 2021-09-02 20:33:19 -04:00
.pre-commit-hooks.yaml fix casing in .pre-commit-hooks.yaml 2021-07-03 11:14:05 -07:00
azure-pipelines.yml add support for dart as a hook language 2021-08-29 08:57:56 -07:00
CHANGELOG.md v2.15.0 2021-09-02 20:33:19 -04:00
CONTRIBUTING.md Add foor missing required dependencies in CONTRIBUTING.md 2020-06-12 18:38:44 +02:00
LICENSE MIT 2014-06-05 08:57:40 -07:00
README.md Add pre-commit.ci 2020-10-26 16:11:27 -07:00
requirements-dev.txt make an exe stub for windows 2020-09-28 18:37:10 -07:00
setup.cfg v2.15.0 2021-09-02 20:33:19 -04:00
setup.py Migrate setup.py to setup.cfg declarative metadata 2019-02-27 22:12:03 -08:00
tox.ini add initial dotnet support 2020-09-27 15:04:35 -07:00

Build Status Azure DevOps coverage 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/