Anthony Sottile
3fbe4f5a6f
Appease autopep8
2017-07-29 16:20:45 -04:00
Cimon Lucas (LCM)
9640999fb0
Making golang-based hooks compatible with Cygwin
2017-07-29 11:33:11 +02:00
Anthony Sottile
8f86f8f156
Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support
...
Remove legacy 'hooks.yaml' file support
2017-07-26 05:50:41 -07:00
Anthony Sottile
d0b268c813
Add support for commit-msg git hook
2017-07-23 20:50:25 -07:00
Anthony Sottile
cff98a634d
Recover from invalid python virtualenvs
2017-07-20 10:57:09 -07:00
Anthony Sottile
be3fbdf94e
Upgrade add-trailing-comma to 0.4.0
2017-07-15 12:32:36 -07:00
Anthony Sottile
86d9ca053b
Remove legacy 'hooks.yaml' file support
2017-07-13 10:29:36 -07:00
Anthony Sottile
0c70fa4229
Use asottile/add-trailing-comma
2017-07-12 18:30:51 -07:00
Evan Hubinger
4262487d12
Fix windows virtualenv issue
2017-07-09 13:40:51 -07:00
Anthony Sottile
d876661345
Use a more intelligent default language version
2017-07-08 21:11:48 -07:00
Anthony Sottile
05a108efe1
Implement exclude_types
2017-07-02 19:08:33 -07:00
Anthony Sottile
f956f421be
Replace our implementation of shebang parsing with identify's
2017-07-02 18:51:26 -07:00
Anthony Sottile
a58d99ac40
Implement types filtering
2017-07-02 18:51:23 -07:00
Anthony Sottile
a68c1ab0d2
Add 'types' to the schema
2017-07-02 13:20:39 -07:00
Anthony Sottile
7b6ea994b8
Expose --source and --origin as environment variables
2017-06-27 10:08:16 -07:00
Anthony Sottile
321210d332
Run git diff with --no-ext-diff
2017-06-09 08:34:04 -07:00
Anthony Sottile
e150921c75
Followup to #533 , match no files when omitted
2017-06-02 08:39:10 -07:00
Anthony Sottile
a1e3a0a131
Use VIRTUALENV_NO_DOWNLOAD in pre-commit
2017-06-01 14:11:45 -07:00
Dain Liffman
d731652a22
Fix for #533
2017-05-31 10:09:42 +08:00
André Berti Sassi
e774c09fac
Add pass_filenames hook option
...
This option controls whether filenames are passed along as arguments to
the hook program.
2017-05-13 14:28:17 -03:00
Anthony Sottile
964948b33d
Fix non-ascii merge commit messages in python2
2017-05-10 12:52:24 -07:00
Anthony Sottile
840a55bbc3
Fixup log_file commit
2017-05-08 11:04:07 -07:00
Alex Hutton
f2644a4f2e
Adds support for 'log_file' in hook config
...
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.
Resolves #499 .
2017-05-08 10:54:04 +10:00
Anthony Sottile
918179849d
Make autoupdate --tags-only the default, add --bleeding-edge
2017-04-29 17:40:42 -07:00
Paul Hooijenga
6c588f189d
Windows: enable ANSI escape support in console.
2017-04-01 23:34:02 +02:00
Anthony Sottile
fa06e72f01
Add a pre-commit sample-config command
2017-03-30 08:45:46 -07:00
Anthony Sottile
ce2f68b40a
Fix regression in 0.13.5 with always_run + files
2017-03-27 07:39:19 -07:00
Joel Bastos
b14fa5a0d8
Fix typos on help description
2017-03-10 17:11:09 +00: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
63d6bed423
Use our VERSION constant moar
2017-03-06 13:27:45 -08:00
Anthony Sottile
05c88738b0
Add a --show-diff-on-failure option
2017-02-25 10:14:17 -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
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
5bfe4e5366
Validate minimum version for local hooks as well
2017-02-16 14:30:01 -08:00
Anthony Sottile
31ccc19ba3
Encode the 'local hooks repo' version into the store
2017-02-16 12:32:58 -08: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
aa72fe5d3f
Make the dummy gem valid by giving it a summary
2017-02-16 10:07:04 -08: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
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
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
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
Thierry Deo
397efa8080
Keep additional_dependencies in the order in which they are specified
2017-02-09 18:09:09 +01:00
Anthony Sottile
c08400e2bc
Improve messaging for missing hook given #480
2017-01-30 20:43:20 -08:00
Anthony Sottile
8d589a5e97
Make autoupdate slightly more future proof
2017-01-30 18:54:56 -08:00