mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
v2.0.0
This commit is contained in:
parent
dbf7de0031
commit
e01bc2c2a1
4 changed files with 35 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v1.4.0
|
rev: v2.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
|
||||||
32
CHANGELOG.md
32
CHANGELOG.md
|
|
@ -1,3 +1,35 @@
|
||||||
|
2.0.0
|
||||||
|
=====
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
- `autopep8-wrapper` has been moved to
|
||||||
|
[pre-commit/mirrors-autopep8][mirrors-autopep8]
|
||||||
|
- #92 issue by @asottile.
|
||||||
|
- #319 issue by @blaggacao.
|
||||||
|
- #321 PR by @asottile.
|
||||||
|
- `trailing-whitespace` defaults to `--no-markdown-linebreak-ext`
|
||||||
|
- #310 issue by @asottile.
|
||||||
|
- #324 PR by @asottile.
|
||||||
|
- `hooks.yaml` (legacy pre-commit hook metadata) deleted
|
||||||
|
- #323 PR by @asottile.
|
||||||
|
- pre-`types` compatibility metadata removed
|
||||||
|
- #323 PR @asottile.
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
|
||||||
|
- Correct documentation for `no-commit-to-branch`
|
||||||
|
- #318 PR by @milin.
|
||||||
|
|
||||||
|
### Updating
|
||||||
|
|
||||||
|
- Minimum supported version of `pre-commit` is now 0.15.0
|
||||||
|
- Use `autopep8` from [pre-commit/mirrors-autopep8][mirrors-autopep8]
|
||||||
|
- To keep mardown hard linebreaks, for `trailing-whitespace` use
|
||||||
|
`args: [--markdown-linebreak-ext=md,markdown]` (the previous default value)
|
||||||
|
|
||||||
|
[mirrors-autopep8]: https://github.com/pre-commit/mirrors-autopep8
|
||||||
|
|
||||||
1.4.0-1
|
1.4.0-1
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ See also: https://github.com/pre-commit/pre-commit
|
||||||
Add this to your `.pre-commit-config.yaml`
|
Add this to your `.pre-commit-config.yaml`
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v1.4.0 # Use the ref you want to point at
|
rev: v2.0.0 # Use the ref you want to point at
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
# - id: ...
|
# - id: ...
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -6,7 +6,7 @@ setup(
|
||||||
name='pre_commit_hooks',
|
name='pre_commit_hooks',
|
||||||
description='Some out-of-the-box hooks for pre-commit.',
|
description='Some out-of-the-box hooks for pre-commit.',
|
||||||
url='https://github.com/pre-commit/pre-commit-hooks',
|
url='https://github.com/pre-commit/pre-commit-hooks',
|
||||||
version='1.4.0',
|
version='2.0.0',
|
||||||
|
|
||||||
author='Anthony Sottile',
|
author='Anthony Sottile',
|
||||||
author_email='asottile@umich.edu',
|
author_email='asottile@umich.edu',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue