mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
https-ify links
- A lot of http links loaded fine on https - pre-commit.com is now loadable on https via cloudflare
This commit is contained in:
@@ -8,8 +8,8 @@ from __future__ import unicode_literals
|
||||
# significantly faster than https:// or http://). For now, periodically
|
||||
# manually updating the revision is fine.
|
||||
SAMPLE_CONFIG = '''\
|
||||
# See http://pre-commit.com for more information
|
||||
# See http://pre-commit.com/hooks.html for more hooks
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
sha: v0.9.2
|
||||
|
||||
@@ -94,7 +94,7 @@ def main(argv=None):
|
||||
argv = [five.to_text(arg) for arg in argv]
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
# http://stackoverflow.com/a/8521644/812183
|
||||
# https://stackoverflow.com/a/8521644/812183
|
||||
parser.add_argument(
|
||||
'-V', '--version',
|
||||
action='version',
|
||||
|
||||
@@ -56,7 +56,7 @@ def normexe(orig_exe):
|
||||
|
||||
def normalize_cmd(cmd):
|
||||
"""Fixes for the following issues on windows
|
||||
- http://bugs.python.org/issue8557
|
||||
- https://bugs.python.org/issue8557
|
||||
- windows does not parse shebangs
|
||||
|
||||
This function also makes deep-path shebangs work just fine
|
||||
|
||||
@@ -68,7 +68,7 @@ class Store(object):
|
||||
os.close(fd)
|
||||
# sqlite doesn't close its fd with its contextmanager >.<
|
||||
# contextlib.closing fixes this.
|
||||
# See: http://stackoverflow.com/a/28032829/812183
|
||||
# See: https://stackoverflow.com/a/28032829/812183
|
||||
with contextlib.closing(sqlite3.connect(tmpfile)) as db:
|
||||
db.executescript(
|
||||
'CREATE TABLE repos ('
|
||||
|
||||
Reference in New Issue
Block a user