Commit graph

48 commits

Author SHA1 Message Date
Morgan Courbet
fc8a5b27e9 Add mixed-line-ending hook 2017-09-05 19:30:55 -07:00
Chris Kuehl
13991f09d2 Add a checker for executables without shebangs 2017-07-02 21:14:25 -07:00
Anthony Sottile
abea6d293d Use 0.15.0 types 2017-07-02 20:57:10 -07:00
Anthony Sottile
5e4e5b3bcb Merge pull request #209 from pre-commit/0_15_0_forward_compatible
Make check-symlinks 0.15.0 compatible
2017-07-02 20:01:24 -07:00
Anthony Sottile
c4720434ba Make check-symlinks 0.15.0 compatible 2017-07-02 19:55:58 -07:00
Daniel Gallagher
d188f2ecf8 Merge branch 'master' into file_contents_sorter_hook 2017-06-25 09:39:21 -07:00
Daniel Gallagher
b6eff3d39e Add sort-simple-yaml hook (originally private hook from yelp_pre_commit_hooks) 2017-06-23 16:26:00 -07:00
Daniel Gallagher
05d9c8c805 Make tests pass 2017-06-23 15:10:10 -07:00
Daniel Gallagher
8b41c575db cp .pre-commit-hooks.yaml hooks.yaml 2017-06-23 10:44:10 -07:00
Evan Felix
a8592669d9 Add a no commit to specific branch hook. (#185)
* add no commit code and config

* add the code

* remove version tweak

* fix logic, remove newline

* add Tests and cleanup testing issues

* remove extraneous modules

* cleanup some pep8 and flake issues

* reorder imports

* more fixes for syntax checking

* code cleanup based off asottile comments

* Use Contractions Properly, alphabatize new hook.

* Adding support for branches with a slash in them.
2017-03-20 10:36:51 -07:00
Chris Kuehl
4b928ab06b Add forbid-new-submodules to hooks.yaml 2016-11-30 10:25:51 -08:00
Jeremy
3620c87b09 add j2 extension to trailing-whitespace and end-of-file-fixer 2016-10-18 19:45:46 -04:00
Rebecca Claire Murphy
17fcaab576
Add .groovy and .tex files to whitespace hooks
Modifies the end-of-file-fixer and trailing-whitespace hooks to include
.groovy and .tex (TeX/LaTeX) files.
2016-10-07 11:50:40 -04:00
Anthony Sottile
18d7035de5 Let's make the files: for the two whitespace fixers the same 2016-09-01 10:08:04 -07:00
Doug Roper
9a68f58541 end-of-file-fixer & trailing-whitespace: Add .scala and .ts files. 2016-09-01 12:34:02 -04:00
Sander Maijers
8a1ff1d39e
Add file patterns for trailing whitespace fixer
* Add extensions for AsciiDoctor, C, C++, OCaml, R, Rust.
* Reorder alphabetically.
2016-06-27 20:20:20 +02:00
Anthony Sottile
fe9c404019 Forbid files with a UTF-8 BOM 2016-03-18 10:59:31 -07:00
Anthony Sottile
64943e8641 Add metadata for check-symlinks 2016-01-15 07:47:33 -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
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
8a8aaf5a60 Add a hook to verify python ast. 2015-08-04 13:48:30 -07:00
Chris Kuehl
500b279eaa Add .pp (Puppet manifest) to file extensions lists 2015-07-27 21:23:02 -07:00
Anthony Sottile
99574324eb Merge pull request #60 from arahayrabedian/master
AWS credential checking
2015-06-17 11:46:15 -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
Rhommel Lamas
efb691467b Add eyaml support for check-yaml hook 2015-04-16 13:53:19 +10:00
Guy Kisel
779a42919a Add check-merge-conflict hook 2015-03-13 16:30:14 -07:00
Cameron Paul
68a7729327 Detect OpenSSH private keys 2015-03-07 09:35:30 -08:00
Anthony Sottile
9f107a0327 v0.4.0 2015-02-22 08:39:33 -08:00
Ken Struys
12f02dfeb8 implemented a basic double quote string fixer 2015-02-08 21:05:12 -08:00
Anthony Sottile
ddc9208a5f Add check-xml hook. 2015-01-17 10:30:58 -08:00
Anthony Sottile
9b830ad92e Merge pull request #22 from guykisel/check-case-conflict
Add check_case_conflict hook
2015-01-12 16:44:48 -08:00
gkisel
c682b50749 Add check_case_conflict hook #21 2015-01-12 15:38:22 -08:00
Kent Wills
98f5ee8c68 added documentation to hooks.yaml 2015-01-12 13:20:11 -05:00
Anthony Sottile
53f1dc0163 Add check-docstring-first hook. 2015-01-04 13:06:21 -08:00
Anthony Sottile
e0a6e66528 Add check-added-large-files hook 2014-12-31 12:21:21 -08:00
Kazunori Sakamoto
fc6fbc4732 Extend target languages of end-of-file-fixer and trailing-whitespace. 2014-12-21 20:18:19 +09:00
Cameron Paul
b83ea591b5 Added requirements.txt hook 2014-12-16 12:39:03 -08:00
tdeo
cc997d7086 Add .erb files to hooks
For end of file fixer and trailing whitespaces
2014-09-02 10:00:34 +02:00
Anthony Sottile
86b1c9da8e Add autopep8-wrapper hook. 2014-08-22 11:00:43 -07:00
Anthony Sottile
243fe50bc1 Add a hook for checking parseable json. 2014-08-19 16:03:48 -07:00
Anthony Sottile
7ec4853521 Add scss to fixers. 2014-06-25 15:36:34 -07:00
Anthony Sottile
f69737ee19 Add template files to hooks.yaml 2014-06-25 11:22:51 -07:00
Anthony Sottile
7c003425b3 Add files to hooks.yaml 2014-06-05 18:35:56 -07:00
Anthony Sottile
1c9ce9dfd2 Add flake8 hook. Tests are broken though. 2014-04-12 09:24:08 -07:00
Anthony Sottile
f78ea7200d Update hooks.yaml for yaml hook. 2014-04-03 21:45:32 -07:00
Anthony Sottile
bec87f6c87 manifest -> hooks 2014-03-30 13:04:35 -07:00
Renamed from manifest.yaml (Browse further)