Commit graph

762 commits

Author SHA1 Message Date
pre-commit-ci[bot]
aaa5981ebd
[pre-commit.ci] pre-commit autoupdate 2021-02-08 16:49:38 +00:00
Anthony Sottile
fb9fc7b71b
Merge pull request #553 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-02-01 12:46:25 -08:00
pre-commit-ci[bot]
81226d2cf4
[pre-commit.ci] pre-commit autoupdate 2021-02-01 16:48:14 +00:00
Anthony Sottile
3842bea65a
Merge pull request #551 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-01-25 08:46:25 -08:00
pre-commit-ci[bot]
a3a8d29b14
[pre-commit.ci] pre-commit autoupdate 2021-01-25 16:39:55 +00:00
Anthony Sottile
43f5ffaeab
Merge pull request #549 from greshilov/fix-comments-with-indents
Fix comments with indents
2021-01-17 12:13:20 -08:00
Viacheslav Greshilov
28b2c8e431 requirements-txt-fixer now supports indents before comments 2021-01-17 21:15:05 +02:00
Anthony Sottile
a6add1c672
Merge pull request #544 from scop/check_executable_opt
check_executables_have_shebangs: avoid unneeded shebang reads on win32
2021-01-08 08:50:39 -08:00
Ville Skyttä
dae0cbd2fa check_executables_have_shebangs: avoid unneeded shebang reads on win32 2021-01-08 16:22:33 +02:00
Anthony Sottile
208e6e3692
Merge pull request #542 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-01-04 09:19:53 -08:00
pre-commit-ci[bot]
2082204791
[pre-commit.ci] pre-commit autoupdate 2021-01-04 16:43:45 +00:00
Anthony Sottile
47561b98ca
Merge pull request #540 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-12-21 09:37:40 -08:00
pre-commit-ci[bot]
19be557505
[pre-commit.ci] pre-commit autoupdate 2020-12-21 16:44:37 +00:00
Anthony Sottile
6e2418c552 v3.4.0 2020-12-15 13:46:40 -08:00
Anthony Sottile
234534dbc6
Merge pull request #538 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-12-14 09:15:49 -08:00
pre-commit-ci[bot]
c4f18bab1a
[pre-commit.ci] pre-commit autoupdate 2020-12-14 16:35:17 +00:00
Anthony Sottile
b7603bf928
Merge pull request #533 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-11-30 08:51:13 -08:00
pre-commit-ci[bot]
1c39c70d88
[pre-commit.ci] pre-commit autoupdate 2020-11-30 16:30:53 +00:00
Anthony Sottile
5c5c6c516a
Merge pull request #532 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-11-23 08:48:31 -08:00
pre-commit-ci[bot]
07699f5dae
[pre-commit.ci] pre-commit autoupdate 2020-11-23 16:40:39 +00:00
Anthony Sottile
c96e4b7cba
Merge pull request #531 from pre-commit/all-repos_autofix_gh-sponsors
Add link to GitHub Sponsors + Open Collective
2020-11-19 17:28:38 -08:00
Anthony Sottile
e3f0f5cec2 Add link to GitHub Sponsors + Open Collective
at the time of writing I am currently unemployed.  I'd love to make open
source a full time career.  if you or your company is deriving value from
this free software, please consider [sponsoring] or [supporting].

[sponsoring]: https://github.com/sponsors/asottile
[supporting]: https://opencollective.com/pre-commit

Committed via https://github.com/asottile/all-repos
2020-11-19 17:13:08 -08:00
Anthony Sottile
4b863f1272
Merge pull request #511 from m-khvoinitsky/master
New hook 'destroyed-symlinks'
2020-11-18 11:48:14 -08:00
Mikhail Khvoinitsky
1e87d59a2d New hook 'destroyed-symlinks' to detect symlinks which are changed to regular files with a content of a path which that symlink was pointing to; move zsplit to util 2020-11-18 11:45:05 -08:00
Anthony Sottile
14e9f0e512
Merge pull request #530 from youngminz/master
Add --additional-domain to check-vcs-permalinks
2020-11-18 09:03:57 -08:00
Youngmin Koo
1f8151aeeb Add --additional-github-domain to check-vcs-permalinks 2020-11-18 08:58:23 -08:00
Anthony Sottile
2323ac0558
Merge pull request #529 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-11-16 10:44:21 -08:00
Anthony Sottile
64d3fbd5cf fix mypy by correcting the __lt__ annotation 2020-11-16 10:41:32 -08:00
pre-commit-ci[bot]
e90998353b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2020-11-16 17:05:15 +00:00
pre-commit-ci[bot]
29fc56c40c [pre-commit.ci] pre-commit autoupdate 2020-11-16 17:04:49 +00:00
Anthony Sottile
75ade3bf9b
Merge pull request #525 from pre-commit/pci
use pre-commit.ci
2020-10-29 11:42:11 -07:00
Anthony Sottile
7d9c32e9a0 use pre-commit.ci 2020-10-29 11:38:19 -07:00
Anthony Sottile
8bb0054677
Merge pull request #524 from danielhoherd/sort-unique
Add --unique arg to file_contents_sorter
2020-10-25 12:26:47 -07:00
Daniel Hoherd
7e393476bd Add --unique arg to file-contents-sorter 2020-10-25 12:18:09 -07:00
Anthony Sottile
9136088a24 v3.3.0 2020-10-20 10:17:01 -07:00
Anthony Sottile
08d19018ce
Merge pull request #522 from jgowdy/byte-order-marker-fix
Attempt to add fixing of BOMs
2020-10-11 11:35:09 -07:00
Jeremiah Gowdy
d18bd5b75f Add new byte-order-marker checker/fixer 2020-10-11 11:31:05 -07:00
Anthony Sottile
5bd9e74adf
Merge pull request #519 from mshawcroft/fix-518
Fix #518, provide --enforce-all option to check_added_large_files
2020-09-27 15:25:47 -07:00
Marcus Shawcroft
012bb0691f Fix #518, provide --enforce-all option to check_added_large_files
The --enforce-all option when provided ensures that all files passed
on the command line are checked against the size limit.  Default
behaviour remains unchanged.
2020-09-27 15:15:37 -07:00
Anthony Sottile
31d41ff291
Merge pull request #514 from Julian/case-insensitive-sorting
Add a way to do case-insensitive sorting via file-contents-sorter.
2020-08-26 18:59:21 -07:00
Julian Berman
0c760253f3 Add a way to do case-insensitive sorting via file-contents-sorter. 2020-08-26 21:55:22 -04:00
Anthony Sottile
e1668fe86a v3.2.0 2020-07-30 13:33:26 -07:00
Anthony Sottile
9eab799c5a
Merge pull request #509 from pawamoy/patch-1
Fix parsing of git output with unusual characters
2020-07-30 12:03:39 -07:00
Timothée Mazzucotelli
4faed34fbc Fix parsing of git output with unusual characters
On Windows, all files are "executable".
Therefore, to know if a file is supposed to be executed,
we check how its attributes were recorded by git:
we run a `git ls-files` command in a subprocess.

By default, this command outputs information
on multiple lines (file and their data separated by newlines).
When a file contains an unusual character,
the character is escaped with an integer sequence
(such as `\303\261`), and git wraps the whole filename
in double-quotes because of the backslashes.
It breaks the current code because we try to open
the filename containing the double-quotes:
it doesn't exist, of course.

Instead of trying to fix this special case by removing
the double-quotes, and breaking other cases
(a double-quote is a valid filename character on Linux),
we tell git to separate each item with the null character `\0`
instead of a new line `\n`, with the option `-z`.
With this option, git doesn't escape unusual characters
with integer sequence, so the output is fixed, and we
parse it by splitting on `\0` instead of `\n`.

Fixes #508.
2020-07-30 11:58:24 -07:00
Anthony Sottile
5372f44b85
Merge pull request #502 from jgeerds/feature/catch-pydevd-pycharm-debug-statement
debug-statements: Add "pydevd_pycharm" to list of debug statements
2020-07-01 17:03:04 -07:00
Jascha Geerds
53a05b952c Add "pydevd_pycharm" to list of debug statements 2020-07-01 17:15:46 +02:00
Anthony Sottile
f7dd0c05bd
Merge pull request #501 from marcjay/document-no-commit-to-branch-always-run
Document the default always_run behaviour of no-commit-to-branch
2020-06-19 13:31:37 -07:00
Marc Jay
b4694348b0 Document the default always_run behaviour of no-commit-to-branch
Include instructions on how to use files/types/excludes/exclude_types
with the no-commit-to-branch hook, along with the caveat of it allowing
empty commits
2020-06-19 18:39:45 +01:00
Anthony Sottile
c14b3aa54f sed -i s/whitelist/allowlist/g 2020-06-17 08:27:11 -07:00
Anthony Sottile
f0bf512dbb
Merge pull request #491 from pre-commit/all-repos_autofix_faster-tests
slightly speed up tests by avoiding pre-commit install
2020-05-26 22:07:40 -07:00