mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
commit
c7fa3b2da3
8 changed files with 11 additions and 11 deletions
|
|
@ -158,7 +158,7 @@
|
||||||
|
|
||||||
1.0.0
|
1.0.0
|
||||||
=====
|
=====
|
||||||
pre-commit will now be following [semver](http://semver.org/). Thanks to all
|
pre-commit will now be following [semver](https://semver.org/). Thanks to all
|
||||||
of the [contributors](https://github.com/pre-commit/pre-commit/graphs/contributors)
|
of the [contributors](https://github.com/pre-commit/pre-commit/graphs/contributors)
|
||||||
that have helped us get this far!
|
that have helped us get this far!
|
||||||
|
|
||||||
|
|
@ -561,7 +561,7 @@ that have helped us get this far!
|
||||||
|
|
||||||
0.3.5
|
0.3.5
|
||||||
=====
|
=====
|
||||||
- Support running during `pre-push`. See http://pre-commit.com/#advanced 'pre-commit during push'.
|
- Support running during `pre-push`. See https://pre-commit.com/#advanced 'pre-commit during push'.
|
||||||
|
|
||||||
0.3.4
|
0.3.4
|
||||||
=====
|
=====
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ With the environment activated simply run `pre-commit install`.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Documentation is hosted at http://pre-commit.com
|
Documentation is hosted at https://pre-commit.com
|
||||||
|
|
||||||
This website is controlled through
|
This website is controlled through
|
||||||
https://github.com/pre-commit/pre-commit.github.io
|
https://github.com/pre-commit/pre-commit.github.io
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@
|
||||||
|
|
||||||
A framework for managing and maintaining multi-language pre-commit hooks.
|
A framework for managing and maintaining multi-language pre-commit hooks.
|
||||||
|
|
||||||
For more information see: http://pre-commit.com/
|
For more information see: https://pre-commit.com/
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ from __future__ import unicode_literals
|
||||||
# significantly faster than https:// or http://). For now, periodically
|
# significantly faster than https:// or http://). For now, periodically
|
||||||
# manually updating the revision is fine.
|
# manually updating the revision is fine.
|
||||||
SAMPLE_CONFIG = '''\
|
SAMPLE_CONFIG = '''\
|
||||||
# See http://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See http://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
sha: v0.9.2
|
sha: v0.9.2
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ def main(argv=None):
|
||||||
argv = [five.to_text(arg) for arg in argv]
|
argv = [five.to_text(arg) for arg in argv]
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
# http://stackoverflow.com/a/8521644/812183
|
# https://stackoverflow.com/a/8521644/812183
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-V', '--version',
|
'-V', '--version',
|
||||||
action='version',
|
action='version',
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ def normexe(orig_exe):
|
||||||
|
|
||||||
def normalize_cmd(cmd):
|
def normalize_cmd(cmd):
|
||||||
"""Fixes for the following issues on windows
|
"""Fixes for the following issues on windows
|
||||||
- http://bugs.python.org/issue8557
|
- https://bugs.python.org/issue8557
|
||||||
- windows does not parse shebangs
|
- windows does not parse shebangs
|
||||||
|
|
||||||
This function also makes deep-path shebangs work just fine
|
This function also makes deep-path shebangs work just fine
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ class Store(object):
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
# sqlite doesn't close its fd with its contextmanager >.<
|
# sqlite doesn't close its fd with its contextmanager >.<
|
||||||
# contextlib.closing fixes this.
|
# 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:
|
with contextlib.closing(sqlite3.connect(tmpfile)) as db:
|
||||||
db.executescript(
|
db.executescript(
|
||||||
'CREATE TABLE repos ('
|
'CREATE TABLE repos ('
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ def test_sample_config(capsys):
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
out, _ = capsys.readouterr()
|
out, _ = capsys.readouterr()
|
||||||
assert out == '''\
|
assert out == '''\
|
||||||
# See http://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See http://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
sha: v0.9.2
|
sha: v0.9.2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue