801 Commits

Author SHA1 Message Date
Anthony Sottile
9f5c99577b v0.13.4 v0.13.4 2017-03-26 13:45:03 -07:00
Anthony Sottile
6e5ac07927 Merge pull request #507 from kintoandar/patch-1
Fix typos on help description
2017-03-10 09:26:56 -08:00
Joel Bastos
b14fa5a0d8 Fix typos on help description 2017-03-10 17:11:09 +00:00
Anthony Sottile
5c2d196168 Merge pull request #505 from pre-commit/dumb_jsonschema
Replace jsonschema with better error messages
2017-03-08 16:21:05 -08:00
Anthony Sottile
c65a11ce3d Replace five with six 2017-03-08 14:25:54 -08:00
Anthony Sottile
cb8dd335f4 Replace jsonschema with better error messages 2017-03-08 14:07:00 -08:00
Anthony Sottile
71bbdb5b4c Merge pull request #504 from pre-commit/use_version_everywhere
Use our VERSION constant moar
2017-03-06 13:40:52 -08:00
Anthony Sottile
63d6bed423 Use our VERSION constant moar 2017-03-06 13:27:45 -08:00
Anthony Sottile
c1ca3aeaf7 tox list matches travis-ci 2017-02-25 14:09:16 -08:00
Anthony Sottile
772a6eb65e Merge pull request #501 from pre-commit/diff_on_failure
Add a --show-diff-on-failure option
2017-02-25 13:48:48 -05:00
Anthony Sottile
05c88738b0 Add a --show-diff-on-failure option 2017-02-25 10:14:17 -08:00
Anthony Sottile
0ece39c484 v0.13.3 v0.13.3 2017-02-23 17:41:58 -08:00
Anthony Sottile
7a579af884 Merge pull request #497 from pre-commit/future_versions
Make hook-tmpl resilient to future changes
2017-02-23 16:15:23 -05:00
Anthony Sottile
dbd131f646 Minor fixups 2017-02-23 13:11:40 -08:00
Anthony Sottile
478b0c70d8 Merge pull request #496 from philipgian/master
Do not run pre-commit if there is no config file
2017-02-23 16:06:19 -05:00
Filippos Giannakos
2f4199850d Add --allow-missing-config option to install
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.

This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
173ce83484 Make hook-tmpl resilient to future changes 2017-02-22 08:48:36 -08:00
Anthony Sottile
41dcaff3fb v0.13.2 v0.13.2 2017-02-17 07:16:39 -08:00
Anthony Sottile
b66c292ede Merge pull request #494 from pre-commit/validate_minimum_version
Validate minimum version for local hooks as well
2017-02-16 18:11:31 -05:00
Anthony Sottile
5bfe4e5366 Validate minimum version for local hooks as well 2017-02-16 14:30:01 -08:00
Anthony Sottile
5cca326854 Merge pull request #493 from pre-commit/encode_version_language_local_hooks
Encode the 'local hooks repo' version into the store
2017-02-16 16:50:10 -05:00
Anthony Sottile
31ccc19ba3 Encode the 'local hooks repo' version into the store 2017-02-16 12:32:58 -08:00
Anthony Sottile
927f471a6c Merge pull request #490 from pre-commit/some_minor_cleanup
Some minor cleanup
2017-02-16 14:51:43 -05:00
Anthony Sottile
e4eb2b0fc5 __defaults__ is available in py27 2017-02-16 10:46:23 -08:00
Anthony Sottile
109c17c5df Some minor constants cleanup 2017-02-16 10:44:08 -08:00
Anthony Sottile
b32facc5b3 v0.13.1 v0.13.1 2017-02-16 10:08:06 -08:00
Anthony Sottile
aa72fe5d3f Make the dummy gem valid by giving it a summary 2017-02-16 10:07:04 -08:00
Anthony Sottile
3bc12b14e9 v0.13.0 v0.13.0 2017-02-16 09:55:57 -08:00
Anthony Sottile
0478c6008c Merge pull request #489 from pre-commit/local_language_hooks
Local language hooks
2017-02-16 12:51:57 -05:00
Anthony Sottile
f000241dcb Local repositories clone a blank repo 2017-02-15 15:36:53 -08:00
Anthony Sottile
e704edb5e2 Refactor Repository to be more functional 2017-02-15 12:46:08 -08:00
Anthony Sottile
e5669ca135 Merge pull request #488 from pre-commit/sha_to_ref_more
Sha to ref more
2017-02-15 12:14:28 -05:00
Anthony Sottile
f7b2948368 Rename some variables to be more like our internal state 2017-02-15 08:57:10 -08:00
Anthony Sottile
36cfeac952 hook-tmpl doesn't need executable bit, we set it 2017-02-15 08:51:06 -08:00
Anthony Sottile
9332780cdd Merge pull request #487 from pre-commit/cherry_pick_grep_fix
PCRE tests work on osx
2017-02-15 11:25:51 -05:00
Thierry Deo
e02c489d76 PCRE tests work on osx 2017-02-15 08:11:50 -08:00
Anthony Sottile
b514e757d5 Merge pull request #486 from philipgian/master
Improve pre-push fileset for a new remote branch
2017-02-14 09:34:42 -08:00
Filippos Giannakos
8c78ddfd5c Improve pre-push fileset for a new remote branch
When pushing a branch that does not exist on the remote repository,
instead of blindly running the checks on every file, this commit locates
the first ancestor not present on the remote repository and uses its
parent as the source of the fileset calculation. If it has no parents,
then the remote repository has no common commits and the checks should
be run on all files.
2017-02-14 19:19:35 +02:00
Anthony Sottile
a81de1ebb3 Merge pull request #483 from alex-hutton/master
Fix eslint on windows
2017-02-10 09:47:03 -08:00
Alex Hutton
42000c4521 Fix eslint on windows
- The bare exe was the first filename attempted to match,
  this changes means it will be matched last, allowing other files
  to be matched if they exist. The result is that eslint now works
  on Windows.
2017-02-10 18:09:00 +11:00
Anthony Sottile
63f65a419c Merge pull request #482 from tdeo/keep_dependencies_order
Keep dependency in order
2017-02-09 10:40:07 -08:00
Thierry Deo
397efa8080 Keep additional_dependencies in the order in which they are specified 2017-02-09 18:09:09 +01:00
Anthony Sottile
7f18b03201 Fix coveralls badge 2017-02-01 08:27:41 -08:00
Anthony Sottile
8eb65b229f Merge pull request #481 from pre-commit/improve_messaging_for_nonexistent_hook
Improve messaging for missing hook given #480
2017-01-30 21:28:10 -08:00
Anthony Sottile
c08400e2bc Improve messaging for missing hook given #480 2017-01-30 20:43:20 -08:00
Anthony Sottile
cf1fa70252 Merge pull request #480 from pre-commit/futureproof
Make autoupdate slightly more future proof
2017-01-30 20:28:42 -08:00
Anthony Sottile
8d589a5e97 Make autoupdate slightly more future proof 2017-01-30 18:54:56 -08:00
Anthony Sottile
308f2cb9cd Merge pull request #479 from pre-commit/more_py26_code
Remove pre_commit.ordereddict module
2017-01-30 09:05:35 -08:00
Anthony Sottile
7e512004d6 Remove pre_commit.ordereddict module 2017-01-30 08:21:34 -08:00
Anthony Sottile
5a1c4bed62 v0.12.2 v0.12.2 2017-01-27 14:28:26 -08:00