Commit Graph

53 Commits

Author SHA1 Message Date
Ville Skyttä 04471f7d97 Add perl additional dependencies test 2020-02-01 16:13:01 +02:00
Anthony Sottile 2a9893d0f0 mkdirp -> os.makedirs(..., exist_ok=True) 2020-01-12 13:39:53 -08:00
Anthony Sottile 9000e9dd41 Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
Anthony Sottile 327ed924a3 Add types to pre-commit 2020-01-12 10:15:01 -08:00
Anthony Sottile 30c1e8289f upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
Uwe L. Korn 4ff23b4eab Support for conda as a language 2019-12-20 18:43:59 -08:00
Anthony Sottile 8ff880faa6 Fix rare first-run race with creation of pre-commit directory 2019-10-28 14:56:03 -07:00
Anthony Sottile f612aeb22b Split out cmd_output_b 2019-10-06 15:16:47 -07:00
Anthony Sottile 73250ff4e3 Fix autoupdate to always use non-shallow clone 2019-07-20 14:59:49 -07:00
Anthony Sottile 01653b8077 Fix shallow fetch by checking out FETCH_HEAD 2019-07-07 22:10:32 -07:00
Anthony Sottile eab24f3e48 Fix full clone + non-mainline tag 2019-04-16 10:30:05 -07:00
DanielChabrowski ab1df03418 Ignore shallow clone coverage on appveyor
Appveyor uses old version of git so shallow clone
always fails and lines 150-151 are not executed.
2019-03-16 00:16:42 +01:00
DanielChabrowski a170e60daa Remove protocol.version 1 shallow cloning 2019-03-15 23:46:35 +01:00
Anthony Sottile ec2e15f086 pre-commit run --all-files 2019-03-14 18:32:27 -07:00
DanielChabrowski 960bcc9614 Fix relative path repos 2019-03-09 23:56:37 +01:00
DanielChabrowski b920f3cc6b Reuse the directory for cloning 2019-03-09 22:59:56 +01:00
DanielChabrowski e74253d2de Allow shallow cloning 2019-03-03 01:35:53 +01:00
Anthony Sottile 9e34e6e316 pre-commit gc 2019-01-02 19:07:23 -08:00
Anthony Sottile bdc58cc33f Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00
Anthony Sottile 9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Anthony Sottile b87c4fd8cc Remove more properties from Runner 2018-07-01 19:49:15 -07:00
Anthony Sottile c01ffc83f8 Separate store from runner 2018-06-29 22:35:53 -07:00
Anthony Sottile af93bec4fd Fix regression: try-repo from relative path 2018-03-17 20:02:06 -07:00
Anthony Sottile 96e9d1b758 Restore git 1.8 support 2018-03-12 14:36:07 -07:00
Anthony Sottile 29033f10ca Move cwd() to tests-only 2018-02-24 16:44:59 -08:00
Anthony Sottile b827694520 Each set of additional dependencies gets its own env 2018-02-24 15:28:43 -08:00
Anthony Sottile 5a4dc0ce30 https-ify links
- A lot of http links loaded fine on https
- pre-commit.com is now loadable on https via cloudflare
2018-01-13 18:17:54 -08:00
Anthony Sottile 40690064f7 Fix broken local golang repos 2018-01-09 09:42:44 -08:00
Anthony Sottile 0120af56a7 Adhere to XDG specification for cache dir. 2017-09-06 10:00:35 -07:00
Anthony Sottile 6141c419ee Remove Runner.cmd_runner and Store.cmd_runner 2017-09-05 14:49:31 -07:00
Anthony Sottile 7cb3e00731 Only print that the lock is being acquired when waiting 2017-09-04 11:53:17 -07:00
Anthony Sottile 625aaf54aa Limit repository creation to one process 2017-08-23 20:59:03 -07:00
Martin von Gagern 8ad5536688 Initialize git submodules
Some packages make use of git submodules, and require all of them to be in place to be installed. One example is my libtidy wrapper for node, which depends on the C sources for libtidy (unless a precompiled binary is available for a given platform). I've been asked to add pre-commit support in https://github.com/gagern/node-libtidy/issues/17 but testing that failed because the source tree was lacking its submodules.
2017-08-07 03:52:06 +01:00
Anthony Sottile 0c70fa4229 Use asottile/add-trailing-comma 2017-07-12 18:30:51 -07:00
Anthony Sottile 31ccc19ba3 Encode the 'local hooks repo' version into the store 2017-02-16 12:32:58 -08:00
Anthony Sottile f000241dcb Local repositories clone a blank repo 2017-02-15 15:36:53 -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 a7169905dc Centralize logging initialization 2016-11-26 14:19:37 -08:00
Anthony Sottile b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile 495fefd316 Fix #322 by only removing git environment variables while cloning 2015-12-22 19:10:08 -08:00
Anthony Sottile 36f1058444 Shotgun: try reset instead of checkout? 2015-03-25 09:39:23 -07:00
Anthony Sottile 8faf96c1ad Don't rename across devices. Resolves #203 2015-02-27 10:11:56 -08:00
Anthony Sottile 143ed94500 Tests pass on windows 2015-02-27 00:48:01 -08:00
Anthony Sottile 56e5c4eb2d Use sqlite3 instead of symlinks for managing repositories 2015-02-22 17:42:40 -08:00
Anthony Sottile 02f0a1c434 Actually print while installing 2015-02-22 16:18:46 -08:00
Anthony Sottile fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile bbd2572b11 Remove plumbum 2014-10-02 06:59:37 -07:00
Anthony Sottile 5d1ffcba75 Hashlib doesn't take unicode. 2014-06-18 07:37:17 -07:00
Anthony Sottile 4ec877628d Use hash of repository name to allow tags. 2014-06-18 07:37:16 -07:00
Anthony Sottile 203c554734 Use cached-property package. 2014-06-17 06:49:54 -07:00