Commit graph

204 commits

Author SHA1 Message Date
Anthony Sottile
97b88d9610 flake8 2.5.3 is broken: https://gitlab.com/pycqa/flake8/issues/119 2016-02-11 09:46:10 -08:00
Anthony Sottile
36214cb67b Merge pull request #102 from pre-commit/improve_error_message_aws_101
Improve error message when credentials file is not provided
2016-02-08 17:31:33 -08:00
Anthony Sottile
d444ab821d Improve error message when credentials file is not provided 2016-02-08 17:18:56 -08:00
Anthony Sottile
d740faeded Typo in no cover comment 2016-02-03 11:12:51 -08:00
Anthony Sottile
64943e8641 Add metadata for check-symlinks 2016-01-15 07:47:33 -08:00
Anthony Sottile
8d80d51cad Fix coverage on check_symlinks for windows 2016-01-15 07:41:58 -08:00
Anthony Sottile
eff3eafcbb Merge pull request #98 from bchess/check_symlinks
New hook tests for broken symlinks
2016-01-15 07:38:46 -08:00
Ben Chess
ee1e98a884 Merge pull request #1 from pre-commit/asottile_check_symlinks
Skip the symlink tests on windows
2016-01-15 10:36:20 -05:00
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