Commit graph

85 commits

Author SHA1 Message Date
Anthony Sottile
92e1570c28 v1.2.3 2018-02-28 09:14:40 -08:00
Anthony Sottile
f6780b99f6 Fix trailing-whitespace entrypoint 2018-02-28 09:13:20 -08:00
Anthony Sottile
1b12723c29 v1.2.2 2018-02-28 09:01:18 -08:00
Anthony Sottile
b1a8062750 v1.2.1 2018-02-19 13:27:08 -08:00
Anthony Sottile
0ddb3b8527 v1.2.0 2018-01-13 17:36:06 -08:00
Anthony Sottile
3e1b954a6e Add six back to setup.py 2017-12-11 07:30:08 -08:00
Calum Lind
00974efa31 Remove pretty_format_json simplejson dependency
* The simplejson module is only needed for <=py25 so replace with builtin json.
 * Replace six dependecy for simple Py2 check for convertion to unicode.
 * Cleanup quotes.
2017-12-10 22:33:33 +00:00
Ben Webber
35996b7a25 Add check to enforce literal syntax for Python builtin types
This check requires authors to initialize empty or zero builtin types
using the literal syntax (e.g., `{}` instead of `dict()`).

Authors may ignore this requirement for certain builtins using the
`--ignore` option.

Authors may also forbid calling `dict()` with keyword arguments
(`dict(a=1, b=2)`) using the `--no-allow-dict-kwargs` flag.
2017-11-26 00:46:03 +00:00
Anthony Sottile
f1e943e6bf v1.1.1 2017-10-19 10:34:23 -07:00
Anthony Sottile
8a98c5e590 v1.1.0 2017-10-12 16:00:22 -07:00
Anthony Sottile
c326dc2fce v1.0.0 2017-10-09 13:17:25 -07:00
Anthony Sottile
9db0a745f6 Add hook for ensuring vcs permalinks 2017-10-06 23:37:13 -07:00
Anthony Sottile
dec98f7bc8 v0.9.5 2017-09-27 07:55:32 -07:00
Anthony Sottile
efdceb4e40 v0.9.4 2017-09-19 10:26:18 -07:00
Anthony Sottile
54ec15fa89 Fix mixed-line-endings entrypoint 2017-09-19 10:14:14 -07:00
Anthony Sottile
9730eb3beb v0.9.3 2017-09-07 19:54:30 -07:00
Anthony Sottile
fbcd096ea9 Simplify mixed-line-ending hook 2017-09-05 20:25:39 -07:00
Morgan Courbet
fc8a5b27e9 Add mixed-line-ending hook 2017-09-05 19:30:55 -07:00
Anthony Sottile
78dffcc819 v0.9.2 2017-08-21 10:58:25 -07:00
Anthony Sottile
20209f691b Merge pull request #180 from pre-commit/require_new_autopep8
Require a newer version of autopep8
2017-07-05 12:27:36 -07:00
Anthony Sottile
7192665e31 v0.9.1 2017-07-02 22:27:09 -07:00
Anthony Sottile
16879bcf16 Merge pull request #211 from pre-commit/check-executables-have-shebangs
Add a checker for executables without shebangs
2017-07-02 21:26:06 -07:00
Anthony Sottile
5dbbd4dd08 v0.9.0 2017-07-02 21:21:19 -07:00
Chris Kuehl
13991f09d2 Add a checker for executables without shebangs 2017-07-02 21:14:25 -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
9425c5d6b5 First commit of file-contents-sorter precommit hook 2017-06-23 00:33:13 -07:00
Anthony Sottile
78818b90cd v0.8.0 2017-06-06 14:26:36 -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
Anthony Sottile
ef7c425a3e Require a newer version of autopep8 2017-03-13 14:34:13 -07:00
Anthony Sottile
20f04626a1 v0.7.1 2017-02-07 10:00:42 -08:00
Anthony Sottile
63142f2d4e v0.7.0 2017-01-21 18:32:17 -08:00
Anthony Sottile
bec44063b0 Test py36 instead of py34 2017-01-20 20:44:44 -08:00
Anthony Sottile
77a7bba2f9 v0.6.1 2016-11-30 10:40:03 -08:00
Chris Kuehl
4b928ab06b Add forbid-new-submodules to hooks.yaml 2016-11-30 10:25:51 -08:00
Anthony Sottile
d19360c179 Drop py33, add py35 2016-08-22 14:32:12 -07:00
Anthony Sottile
6925455ef7 v0.6.0 2016-08-12 10:23:38 -07:00
Anthony Sottile
adbb569fe9 v0.5.1 2016-05-16 09:12:32 -07:00
Anthony Sottile
ff65d01841 v0.5.0 2016-04-05 10:52:44 -07:00
Anthony Sottile
fe9c404019 Forbid files with a UTF-8 BOM 2016-03-18 10:59:31 -07:00
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
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
8a8aaf5a60 Add a hook to verify python ast. 2015-08-04 13:48:30 -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
255af75d1f add six to installation requirements 2015-06-12 19:21:14 +04: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