Commit Graph

180 Commits

Author SHA1 Message Date
Anthony Sottile
3d5a360df4 Fix Py3 2014-04-13 18:07:21 -07:00
Anthony Sottile
c91b244105 pyflakes -> flake8 2014-04-13 18:01:35 -07:00
Anthony Sottile
2c7ec7a744 Merge pull request #79 from pre-commit/skip_if_no_files
Skip if no files
2014-04-13 17:47:18 -07:00
Anthony Sottile
de24712a6f Skip hooks if no files to check. Closes #69. 2014-04-13 17:39:58 -07:00
Anthony Sottile
6c940c5145 Simplify commands test. 2014-04-13 17:12:34 -07:00
Anthony Sottile
e297b210a5 Merge pull request #78 from pre-commit/improve_test_coverage
Improve test coverage
2014-04-13 15:55:12 -07:00
Anthony Sottile
681ddf99b7 Fix Py3 2014-04-13 15:47:27 -07:00
Anthony Sottile
105b832585 Bump up to 93% 2014-04-13 15:39:31 -07:00
Anthony Sottile
7d4787eced Increase coverage moar 2014-04-13 15:28:48 -07:00
Anthony Sottile
0fec434380 Improve coverage for validators. 2014-04-13 14:45:39 -07:00
Anthony Sottile
cd36e9e779 Fix Py3 2014-04-13 14:29:45 -07:00
Anthony Sottile
5eda121260 Move stuff into commands and write tests. 2014-04-13 14:07:52 -07:00
Anthony Sottile
47c68820d0 Merge pull request #74 from pre-commit/py3
Python 3 compatibility.
2014-04-12 23:53:05 -07:00
Anthony Sottile
064c54dd2b Bump down coverage number due to five 2014-04-12 23:46:03 -07:00
Anthony Sottile
366bc1d1cc Fix str() call 2014-04-12 23:46:03 -07:00
Anthony Sottile
bb365a6e68 Python 3 compatibility. 2014-04-12 23:46:03 -07:00
Anthony Sottile
ddebb83a40 Merge pull request #77 from pre-commit/rebuild_venv
Rebuild virtualenv on requirements change.
2014-04-12 23:30:11 -07:00
Anthony Sottile
2bfb85e52e Rebuild virtualenv on requirements change. 2014-04-12 23:25:49 -07:00
Anthony Sottile
969170bf67 Merge pull request #73 from pre-commit/use_asottile_packages
yaml extensions and ordereddict are now imported from asottile.
2014-04-12 16:15:50 -07:00
Anthony Sottile
e58d28aad3 yaml extensions and ordereddict are now imported from asottile. 2014-04-12 16:12:10 -07:00
Anthony Sottile
c0a0a21680 Merge pull request #72 from pre-commit/better_project_setup
Better project setup
2014-04-12 16:01:25 -07:00
Anthony Sottile
1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Anthony Sottile
f31f092f9b Merge pull request #67 from pre-commit/logging_handler_26_compat_66
LoggingHandler 2.6 compat
2014-04-07 17:08:55 -07:00
Anthony Sottile
7a8dcb0ca9 Python 2.6 compatibility for LoggingHandler. Closes #66. 2014-04-07 17:04:21 -07:00
Anthony Sottile
8b0a2abaf9 Add failing 2.6 test 2014-04-07 16:59:20 -07:00
Anthony Sottile
460582dacd Fix node in no-node-case...again. 2014-04-07 11:41:11 -07:00
Anthony Sottile
5a0d35d389 Merge pull request #65 from pre-commit/stash_before_check_30
Pre-commit stashes unstaged changes on run. Closes #30.
2014-04-05 22:08:06 -07:00
Anthony Sottile
514a6d66cf Remove incorrect todo comment. 2014-04-05 22:05:18 -07:00
Anthony Sottile
158a3a6d8b Pre-commit stashes unstaged changes on run. Closes #30. 2014-04-05 22:01:29 -07:00
Anthony Sottile
a3720c0645 Add logging handler. 2014-04-05 21:50:20 -07:00
Anthony Sottile
4ed9120ae9 Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00
Anthony Sottile
749615118e Merge pull request #64 from pre-commit/color_63
Wire in color for pre-commit
2014-04-05 19:34:59 -07:00
Anthony Sottile
73e0111e38 Wire in color for pre-commit. Closes #63. 2014-04-05 19:31:31 -07:00
Anthony Sottile
8aa88c7363 Consolidate arguments for run() 2014-04-05 19:21:12 -07:00
Anthony Sottile
6a1f945e31 Add color utility. 2014-04-05 19:12:30 -07:00
Anthony Sottile
e98d2e1e79 Use print_function moar. 2014-04-05 18:58:11 -07:00
Anthony Sottile
371ec1e051 Merge pull request #62 from pre-commit/verbose
Add verbose mode for pre-commit
2014-04-03 23:48:45 -07:00
Anthony Sottile
7a8cfee9fe Add verbose mode for pre-commit 2014-04-03 23:45:27 -07:00
Anthony Sottile
f27efd9ef3 Merge pull request #61 from pre-commit/print_stuff_when_installing
Print message when installing repositories.
2014-04-03 23:35:18 -07:00
Anthony Sottile
74363e6ec2 Print message when installing repositories. 2014-04-03 23:31:45 -07:00
Anthony Sottile
36ecf23c2e Merge pull request #60 from pre-commit/control_c_58
Clean up directories on failure.  Closes #58.
2014-04-03 22:57:30 -07:00
Anthony Sottile
bcb00726a1 Clean up directories on failure. Closes #58. 2014-04-03 22:54:27 -07:00
Anthony Sottile
443b62d56a Add yaml hook. 2014-04-03 22:31:42 -07:00
Anthony Sottile
3cfc49b522 Merge pull request #59 from pre-commit/fix_update_adding_defaults
Fix autoupdate spamming with defaults.
2014-04-03 22:14:22 -07:00
Anthony Sottile
8b5c3b8745 Fix autoupdate spamming with defaults. 2014-04-03 22:11:53 -07:00
Anthony Sottile
817ec510c7 Deepcopy defaults to prevent weird references in yaml. 2014-04-03 21:53:31 -07:00
Anthony Sottile
5a7044edcc Merge pull request #57 from pre-commit/dry_validate
Dry validate
2014-04-03 21:03:00 -07:00
Anthony Sottile
d5e920b370 Fuck you ipython 2014-04-03 20:59:37 -07:00
Anthony Sottile
9a1799b9a8 DRY up validate_* 2014-04-03 20:51:37 -07:00
Anthony Sottile
9ce6cc6c05 Merge pull request #56 from pre-commit/exclude_pattern
Exclude pattern
2014-03-31 23:38:10 -07:00