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
Anthony Sottile
d021bbfabd
Merge pull request #2071 from pre-commit/submodule-recurse-bug
...
make sure to not discard changes even if submodule.recurse=1
2021-10-01 16:47:50 -07:00
Anthony Sottile
e9ed248a15
make sure to not discard changes even if submodule.recurse=1
2021-10-01 18:45:36 -04:00
Anthony Sottile
e0e3fabfdb
Merge pull request #2066 from pre-commit/unxfail-node-windows
...
un-xfail node on windows
2021-09-27 17:44:37 -07:00
Anthony Sottile
2fc00f73b6
un-xfail node on windows
...
these have been reasonably stable for a while
2021-09-27 20:00:18 -04:00
Anthony Sottile
b3c0d84dd3
Merge pull request #2065 from pre-commit/hook-template-bash
...
port hook template to bash
2021-09-27 16:59:10 -07:00
Anthony Sottile
e622f793c3
port hook template to bash
...
this avoids some version-specific code in python
this also makes the bootstrap script slightly more portable
2021-09-27 19:34:04 -04:00
Anthony Sottile
ef7b126ee3
Merge pull request #2053 from radek-sprta/master
...
Add warning for regular expression with [\/] (#2043 )
2021-09-22 16:56:21 -07:00
Radek SPRTA
cef9c4af03
Add warning for regular expression with [\/] ( #2043 )
2021-09-22 19:07:38 -04:00
Anthony Sottile
530dbe69ce
Merge pull request #2047 from pre-commit/windows-as-usual
...
fix pre-commit autoupdate for core.useBuiltinFSMonitor=true on windows
2021-09-14 14:15:34 -07:00
Anthony Sottile
ab94dd69f8
fix pre-commit autoupdate for core.useBuiltinFSMonitor=true on windows
2021-09-13 20:01:25 -04:00
Anthony Sottile
2ef29b7f95
Merge pull request #2039 from pre-commit/issue-form
...
add a bug report issue form
2021-09-06 15:52:04 -04:00
Anthony Sottile
09ffe421a9
add a bug report issue form
2021-09-06 15:01:42 -04:00
Anthony Sottile
36b8ad63d2
v2.15.0
2021-09-02 20:33:19 -04:00
Anthony Sottile
c64c36b120
Merge pull request #2036 from uSpike/add-post-rewrite-hook
...
Add: post-rewrite hook support
2021-09-02 14:08:23 -04:00
Jordan Speicher
4cd8b364dd
Add: post-rewrite hook support
2021-09-01 14:50:59 -05:00
Anthony Sottile
3bab1514c3
Merge pull request #2030 from pre-commit/duplicate-messages-autoupdate
...
remove duplicate warnings while running autoupdate
2021-08-30 21:49:04 -04:00
Anthony Sottile
25a1988859
Merge pull request #2029 from pre-commit/broken-symlink-check-useless-excludes
...
fix check-useless-excludes for exclude of broken symlink
2021-08-30 21:48:56 -04:00
Anthony Sottile
726f2ad0a3
remove duplicate warnings while running autoupdate
2021-08-30 20:56:24 -04:00
Anthony Sottile
35d3ed40cd
fix check-useless-excludes for exclude of broken symlink
2021-08-30 20:56:14 -04:00
Anthony Sottile
a96bb23caf
Merge pull request #2031 from pre-commit/wtf-is-ort
...
update tests for latest git
2021-08-30 20:55:57 -04:00
Anthony Sottile
54a481c04b
update tests for latest git
2021-08-30 20:48:41 -04:00
Anthony Sottile
66c51a3d56
Merge pull request #2027 from pre-commit/dart
...
add support for dart as a hook language
2021-08-30 19:30:51 -04:00
Anthony Sottile
2d03991195
Merge pull request #2028 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-30 15:10:08 -04:00
pre-commit-ci[bot]
46c18d9370
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.24.0 → v2.25.0](https://github.com/asottile/pyupgrade/compare/v2.24.0...v2.25.0 )
2021-08-30 18:35:12 +00:00
Anthony Sottile
f8e21cb78b
add support for dart as a hook language
2021-08-29 08:57:56 -07:00
Anthony Sottile
0f08ba77c8
v2.14.1
2021-08-28 14:15:40 -04:00
Anthony Sottile
12f62d2191
Merge pull request #2026 from pre-commit/incorrect-regular-expressions
...
make `repo: meta` only apply to top level configuration
2021-08-28 14:07:53 -04:00
Anthony Sottile
f963bf6f9a
make repo: meta only apply to top level configuration
2021-08-28 13:39:55 -04:00
Anthony Sottile
40e21bb8ba
Merge pull request #2020 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-23 14:44:45 -04:00
pre-commit-ci[bot]
b829bc2dba
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.3 → v2.24.0](https://github.com/asottile/pyupgrade/compare/v2.23.3...v2.24.0 )
2021-08-23 18:12:36 +00:00
Anthony Sottile
509e4e20e8
Merge pull request #2005 from pre-commit/disparate-histories
...
fall back to full diff on disparate histories
2021-08-10 08:55:03 -04:00
Anthony Sottile
0fe959df60
fall back to full diff on disparate histories
2021-08-09 20:13:15 -04:00
Anthony Sottile
abc1c5d9ba
Merge pull request #2004 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-09 11:52:02 -07:00
pre-commit-ci[bot]
d6f5504311
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.1 → v2.23.3](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.23.3 )
2021-08-09 18:05:46 +00:00
Anthony Sottile
ab15d7d22d
v2.14.0
2021-08-06 11:32:11 -07:00
Anthony Sottile
6cfdabb69a
Merge pull request #1997 from pre-commit/true-dind
...
ignore self-container when in docker-in-docker
2021-08-03 16:41:21 -04:00
Anthony Sottile
5d1cac64c1
ignore self-container when in docker-in-docker
2021-08-03 13:08:07 -07:00
Anthony Sottile
a4444f1996
Merge pull request #1996 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-02 15:30:08 -04:00
pre-commit-ci[bot]
5bd2077872
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1 )
2021-08-02 18:01:06 +00:00
Anthony Sottile
a02859ad6b
Merge pull request #1989 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-26 14:34:48 -04:00
pre-commit-ci[bot]
6cd4e2af48
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0 )
- [github.com/asottile/reorder_python_imports: v2.5.0 → v2.6.0](https://github.com/asottile/reorder_python_imports/compare/v2.5.0...v2.6.0 )
2021-07-26 17:51:54 +00:00
Anthony Sottile
621146bd80
Merge pull request #1984 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-19 18:24:20 -04:00
pre-commit-ci[bot]
0065a71e3d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.21.0 → v2.21.2](https://github.com/asottile/pyupgrade/compare/v2.21.0...v2.21.2 )
2021-07-19 21:58:13 +00:00
Anthony Sottile
fe436f1eb0
Merge pull request #1974 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-12 20:18:26 -04:00
pre-commit-ci[bot]
81c0413c38
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.20.0 → v2.21.0](https://github.com/asottile/pyupgrade/compare/v2.20.0...v2.21.0 )
2021-07-12 23:20:49 +00:00
Anthony Sottile
835f9c65e9
Merge pull request #1968 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-05 18:30:48 -04:00
pre-commit-ci[bot]
d4c14fb6fd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.19.4 → v2.20.0](https://github.com/asottile/pyupgrade/compare/v2.19.4...v2.20.0 )
2021-07-05 22:01:40 +00:00
Anthony Sottile
edcbf8fb4b
Merge pull request #1919 from adarnimrod/fix-container-id
...
A more reliable way to get the container id.
2021-07-03 14:44:01 -04:00
Anthony Sottile
8067f013d2
fix casing in .pre-commit-hooks.yaml
2021-07-03 11:14:05 -07:00