Anthony Sottile
da882286e3
Skip the symlink tests on windows
2016-01-14 19:03:11 -08:00
Anthony Sottile
d466a2e52c
no cover some non-lfs lines
2016-01-14 18:57:03 -08:00
Benjamin Chess
896c0cfdc0
new hook tests for broken symlinks
2016-01-14 15:25:46 -08:00
Anthony Sottile
5edf945ca5
Merge pull request #96 from pre-commit/git_lfs
...
Teach check-large-files-added about git-lfs. Reslves #82 .
2016-01-04 14:05:19 -05:00
Anthony Sottile
3f6f23d73f
Teach check-large-files-added about git-lfs. Reslves #82 .
2015-12-28 05:38:06 -08:00
Anthony Sottile
2c62e4aafc
Merge pull request #97 from pre-commit/dont_write_files_that_arent_cleaned_up
...
Write to temp directories in such a way that files get cleaned up
2015-12-26 14:11:10 -05:00
Anthony Sottile
7376a29d69
Write to temp directories in such a way that files get cleaned up
2015-12-26 10:58:33 -08:00
Anthony Sottile
61d3e60a20
Merge pull request #95 from pre-commit/run_pre_commit_during_test
...
Run pre-commit during test
2015-12-25 12:48:48 -05:00
Anthony Sottile
3a3a7a153a
Run pre-commit during test
2015-12-25 09:42:17 -08:00
Anthony Sottile
e306ff3b7d
Merge pull request #91 from SBoudrias/patch-1
...
Fix code syntax in README
2015-12-01 16:08:52 -08:00
Simon Boudrias
3284a1aa57
Fix code syntax in README
2015-12-01 15:42:07 -08:00
Anthony Sottile
78fd6916dd
Merge pull request #90 from cchristous/master
...
Reformatted --diff-filter git argument
2015-12-01 14:05:54 -08:00
Corey Christous
a23c58298c
Reformatted --diff-filter git argument
...
This makes the command compatible with older versions of git.
2015-12-01 16:59:22 -05:00
Anthony Sottile
0ff8620e03
Merge pull request #89 from phoxelua/master
...
Fixed regex matching for django test file names
2015-11-19 06:43:08 -08:00
phoxelua
58edfc8af6
Fixed regex matching
2015-11-19 00:39:29 -08:00
Anthony Sottile
daa1e9a837
Merge pull request #87 from pre-commit/encoding_pragma_hook
...
Add encoding pragma hook. Resolves pre-commit/pre-commit#15
2015-11-13 14:09:44 -08:00
Anthony Sottile
aa2ba6f94f
Add encoding pragma hook. Resolves pre-commit/pre-commit#15
2015-11-13 12:39:43 -08:00
Anthony Sottile
29bf11d136
Merge pull request #85 from deanwilson/aws_detected_filenames
...
Show names of files containing aws credentials
2015-10-28 09:50:57 -07:00
Dean Wilson
a6665279e7
Show names of files containing aws credentials
2015-10-28 05:13:37 +00:00
Anthony Sottile
edb5d5219e
Merge pull request #84 from pre-commit/update_description_about_autopep8
...
Update description about autopep8. Closes #83
2015-10-18 12:36:53 -07:00
Anthony Sottile
44fbe61e3d
Update description about autopep8. Closes #83
2015-10-18 12:36:14 -07:00
Anthony Sottile
f82fb149af
Add C, C++ to whitespace hooks
2015-09-23 13:29:30 -07:00
Anthony Sottile
616c1ebd18
Merge pull request #79 from chriskuehl/requirements-sorter-nocase
...
Sort requirements.txt case-insensitively
2015-08-17 12:55:56 -07:00
Chris Kuehl
a1b0104f3d
Sort requirements.txt case-insensitively
2015-08-17 12:43:13 -07:00
Anthony Sottile
c2992bd3a1
Merge pull request #77 from pre-commit/check_ast_hook
...
Add a hook to verify python ast.
2015-08-04 13:58:11 -07:00
Anthony Sottile
8a8aaf5a60
Add a hook to verify python ast.
2015-08-04 13:48:30 -07:00
Anthony Sottile
003e43251a
Merge pull request #76 from chriskuehl/private-key-print-only-filename
...
detect_private_key: print *filenames*, not the key
2015-08-01 20:08:17 -04:00
Chris Kuehl
ca2be345a1
detect_private_key: print *filenames*, not the key
2015-08-01 17:02:29 -07:00
Anthony Sottile
5dd2605fbe
Merge pull request #75 from chriskuehl/add-pp-to-extensions
...
Add .pp (Puppet manifest) to file extensions lists
2015-07-28 08:01:36 -04:00
Chris Kuehl
500b279eaa
Add .pp (Puppet manifest) to file extensions lists
2015-07-27 21:23:02 -07:00
Anthony Sottile
516cc9fa72
Allow six to bump
2015-06-17 11:49:19 -07:00
Anthony Sottile
99574324eb
Merge pull request #60 from arahayrabedian/master
...
AWS credential checking
2015-06-17 11:46:15 -07:00
Ara Hayrabedian
993c05be65
update readme to reflect that we no longer check for access keys, only secrets
2015-06-13 16:32:30 +04:00
Ara Hayrabedian
974ef4e93c
disable import checking for six.moves
2015-06-13 14:18:08 +04:00
Ara Hayrabedian
255af75d1f
add six to installation requirements
2015-06-12 19:21:14 +04:00
Ara Hayrabedian
02e8bdc9d8
add tests, test sample files and minor refactor of exit codes in actual hook in order to facilitate testing
2015-06-12 19:20:56 +04:00
Ara Hayrabedian
88725503c4
remove print statement
2015-06-12 17:02:06 +04:00
Ara Hayrabedian
3078aec57b
use six for config parser, add to reqs
...
ditch checkign access_key (don't consider these a secret)
don't check line by line, check the whole file in bulk instead
2015-06-12 16:24:01 +04:00
Anthony Sottile
0d88124ef6
Merge pull request #66 from pre-commit/binary_detect_private_key_64
...
Allow arbitrary binary to pass the private key hook check. Resolves #64
2015-06-11 14:43:43 -07:00
Anthony Sottile
07c938e1b1
Allow arbitrary binary to pass the private key hook check. Resolves #64
2015-06-11 13:28:10 -07:00
Anthony Sottile
6077f2fefb
Merge pull request #65 from LeoCavaille/master
...
Add new hook pretty-format-json
2015-06-10 21:44:43 -07:00
Léo Cavaillé
55bf22dc4a
Add new hook pretty-format-json
...
This new hook allows to standardize one's JSON files (sorted key/4
spaces indent).
By default it just fails if any file is not complying with the standard,
but you can also pass the arg `--autofix` and the hook will
pretty-format the file itself.
Good in use combined with the `check-json` hook.
2015-06-11 00:08:03 -04:00
Ara Hayrabedian
95bf20d52d
add aws credential checking ONLY FOR YOUR OWN credentials if they're set in a configurable credentials file (AWS CLI tools' native format)
2015-06-01 23:16:51 +04:00
Anthony Sottile
cf550fcab3
v0.4.2
2015-05-31 14:02:52 -07:00
Anthony Sottile
f138e3451b
Update hooks
2015-05-31 13:51:02 -07:00
Anthony Sottile
5656e3cc30
Bump hooks
2015-05-31 13:47:21 -07:00
Anthony Sottile
9ba5af45ce
Fix #59 by removing direct dependency on pyflakes
2015-05-31 13:46:47 -07:00
Anthony Sottile
2dda836789
tox--
2015-05-16 19:11:06 -07:00
Anthony Sottile
a00c16b8a3
Merge pull request #58 from dupuy/markdown-trailing-whitespace
...
Implement Markdown trailing space line break preservation
2015-05-11 06:51:38 -07:00
Alexander Dupuy
a6023ac0d7
Implement Markdown trailing space line break preservation
...
Markdown uses two or more trailing spaces on a line to indicate a forced
line break `<br/>` - these will be preserved for files with a markdown
extension (default = `.md` or `.markdown`).
Add `--markdown-linebreak-ext=X,Y` to add extensions (`*` matches any),
and `--no-markdown-linebreak-ext` to disable this feature.
If you want to set specific extension `foo` only (and not md/markdown),
use `--no-markdown-linebreak-ext --markdown-linebreak-ext=foo`
Tries to prevent --markdown-linebreak-ext from eating filenames as if they were
extensions by rejecting any with '.' or '/' (or even Windows-style '\' or ':')
Update README.md to include information on these arguments as well as
arguments added to other hooks
Add extensive tests using pytest.mark.parametrize
test that `txt` file is not considered as 'txt' extension
test that `.txt` file is not considered as 'txt' extension
The latter is the (correct) behavior of os.path.splitext(), and an example
of why it is better to use the libraries than to mangle strings yourself.
2015-05-11 08:52:32 +02:00