Commit graph

1190 commits

Author SHA1 Message Date
Anthony Sottile
e9446ff0cc Merge pull request #207 from dlgallagher/file_contents_sorter_hook_fix_bug_with_files_not_ending_in_newline
Fix bug with the file-contents-sorter hook when processing file that …
2017-06-26 11:28:11 -04:00
Daniel Gallagher
7102e0c8a3 file-contents-sorter should add newline at end of files missing newlines
Make an explicit 'else' path for readability
2017-06-26 08:10:32 -07:00
Daniel Gallagher
5dd1819e8b Warn users of file-contents-sorter that blank lines are removed and comments are not respected 2017-06-25 15:37:58 -07:00
Daniel Gallagher
7cfec24f77 Fix bug with the file-contents-sorter hook when processing file that does not end in a newline 2017-06-25 14:40:03 -07:00
Anthony Sottile
50871f83cc Merge pull request #206 from dlgallagher/requirements_txt_fixer_followup
Some style tweaks (requirements_txt_fixer)
2017-06-25 14:53:25 -04:00
Anthony Sottile
042c840ffa Merge pull request #202 from dlgallagher/file_contents_sorter_hook
File contents sorter hook
2017-06-25 14:52:04 -04:00
Daniel Gallagher
4c421e2ed1 Put argument parsing back into main() 2017-06-25 10:22:10 -07:00
Daniel Gallagher
844d9830de Some style tweaks 2017-06-25 10:14:58 -07:00
Daniel Gallagher
89ddf17888 Inline tuple parameterized test tuple 2017-06-25 09:48:16 -07:00
Daniel Gallagher
d188f2ecf8 Merge branch 'master' into file_contents_sorter_hook 2017-06-25 09:39:21 -07:00
Anthony Sottile
d419bef35c Merge pull request #205 from dlgallagher/fix_requirements_txt_fixer_on_empty_requirements_files
Fix NoneTypeError when requirements file is empty
2017-06-24 00:35:39 -04:00
Anthony Sottile
a9c4799de5 Merge pull request #203 from dlgallagher/sort_simple_yaml
Add sort-simple-yaml hook
2017-06-24 00:28:25 -04:00
Daniel Gallagher
7ccfa05f2f Fix NoneTypeError when requirements file is empty 2017-06-23 17:19: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
b941d0e6df Respond to review feedback 2017-06-23 14:58:24 -07:00
Daniel Gallagher
4af7451154 Update README.md about file-contents-sorter 2017-06-23 11:32:05 -07:00
Daniel Gallagher
8b41c575db cp .pre-commit-hooks.yaml hooks.yaml 2017-06-23 10:44:10 -07:00
Daniel Gallagher
9425c5d6b5 First commit of file-contents-sorter precommit hook 2017-06-23 00:33:13 -07:00
Anthony Sottile
6076fd1b15 Support rebase conflicts in check-merge-conflicts 2017-06-12 10:39:07 -07:00
Anthony Sottile
78818b90cd v0.8.0 2017-06-06 14:26:36 -07:00
Anthony Sottile
5bf6c09bfa Merge pull request #186 from pre-commit/attempt_to_fix_json_hook
Attempt to fix json hook
2017-03-20 11:53:31 -07:00
Anthony Sottile
c71b80b6ed bump revision of pre-commit-hooks 2017-03-20 11:26:07 -07:00
Anthony Sottile
dc50b7f09c Attempt to fix the json hook under test 2017-03-20 11:25:45 -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
b95dcad616 Fixups 2017-03-20 08:24:58 -07:00
Anthony Sottile
4c3cc8f3ed Merge pull request #184 from ushuz/pretty-json-no-ensure-ascii
Add --no-ensure-ascii option to pretty-format-json hook
2017-03-20 08:23:15 -07:00
ushuz
10f8bd2f22 Add unit test for --no-ensure-ascii option 2017-03-20 20:19:01 +08:00
John Hu
543c5c7e1a Add an option to disable ensure_ascii 2017-03-20 20:19:01 +08:00
Anthony Sottile
414cfa7b23 Merge pull request #182 from Hirevisor/master
Handling default django test filename of "tests.py"
2017-03-15 07:35:07 -07:00
Oliver Zhou
c380d0b3e3 Handling default django test filename of "tests.py" 2017-03-15 00:40:53 -07:00
Anthony Sottile
ef7c425a3e Require a newer version of autopep8 2017-03-13 14:34:13 -07:00
Anthony Sottile
c847dd3f2e Merge pull request #179 from pre-commit/pyupgrade
Add pyupgrade
2017-03-12 18:17:06 -07:00
Anthony Sottile
9cee71b5df Add pyupgrade 2017-03-12 18:01:29 -07:00
Anthony Sottile
a11d9314b2 Merge pull request #177 from pre-commit/asottile-patch-1
Change `sha` in readme to be a real value
2017-02-25 15:48:10 -05:00
Anthony Sottile
6ff0a78460 Change sha in readme to be a real value
I noticed in our traffic on pre-commit/pre-commit that there were a lot of hits to [this issue](https://github.com/pre-commit/pre-commit/issues/366) presumably due to copy pasting from this readme.

This should reduce frustration in that regard (we'll have to remember to update this whenever bumping the version).
2017-02-25 12:33:07 -08:00
Anthony Sottile
e626cd5709 Merge pull request #175 from miketheman/miketheman/allow-missing-aws
Add flag to detect-aws-credentials to allow missing keys
2017-02-10 10:07:43 -08:00
Mike Fiedler
312e721ce9
Add flag to detect-aws-credentials to allow missing keys
In the event that there exists no configuration for AWS credentials and
they are not exported in to the current environment, a flag may be
passed to allow exiting the hook successfully.

Resolves #174

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-02-10 12:54:03 -05:00
Anthony Sottile
20f04626a1 v0.7.1 2017-02-07 10:00:42 -08:00
Anthony Sottile
f9ce156915 Merge pull request #172 from pre-commit/fix_trailing_whitespace
Only return nonzero when rewriting whitespace
2017-02-07 09:59:57 -08:00
Anthony Sottile
81147337c5 Only return nonzero when rewriting whitespace 2017-02-07 09:45:31 -08:00
Anthony Sottile
46251c9523 Fix coveralls badge 2017-02-01 08:30:58 -08:00
Anthony Sottile
63142f2d4e v0.7.0 2017-01-21 18:32:17 -08:00
Anthony Sottile
2df9948c67 Merge pull request #166 from pre-commit/pre_commit_hooks_yaml
Add .pre-commit-hooks.yaml for forward compatibility
2017-01-21 18:26:46 -08:00
Anthony Sottile
7752c42452 Add .pre-commit-hooks.yaml for forward compatibility
See pre-commit/pre-commit#470
2017-01-21 18:03:59 -08:00
Anthony Sottile
6f21fdf27f Merge pull request #165 from pre-commit/py36
Test py36 instead of py34
2017-01-21 17:21:35 -08:00
Anthony Sottile
bec44063b0 Test py36 instead of py34 2017-01-20 20:44:44 -08:00
Anthony Sottile
5da199bb8d Formatting fixups 2017-01-03 13:13:44 -08:00
Anthony Sottile
47996656b4 Merge pull request #162 from Dunedan/improve-aws-credential-searching
Improve searching for configured AWS credentials
2017-01-03 16:11:30 -05:00
Anthony Sottile
9c0460baa0 Merge pull request #163 from pre-commit/update_no_cover_for_appveyor
appveyor installed git-lfs, fix coverage
2017-01-03 16:00:54 -05:00