This commit is contained in:
Anthony Sottile 2019-04-21 13:12:53 -07:00
parent f67747875e
commit 7905d805af
4 changed files with 34 additions and 3 deletions

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v2.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer

View File

@ -1,3 +1,34 @@
2.2.0
=====
### Features
- Switch from `pyyaml` to `ruamel.yaml`
- This enforces (among other things) duplicate key checking in yaml.
- #351 PR by @asottile.
- Add a new `--pattern` option to `no-commit-to-branch` for regex matching
branch names.
- #375 issue by @marcjay.
- #376 PR by @marcjay.
### Fixes
- Set `require_serial: true` for flake8
- flake8 internally uses multiprocessing.
- #358 PR by @asottile.
- Don't run `check-executables-have-shebangs` / `trailing-whitespace` hooks
during the `commit-msg` stage.
- #361 issue by @revolter.
- #362 PR by @revolter.
- Run `check-byte-order-marker` against `types: [text]`
- #371 PR by @tobywf.
- #372 PR by @tobywf.
- Do not require UTF-8-encoded files for `check-docstring-first`
- #345 issue by @x007007007.
- #374 PR by @asottile.
### Misc.
- `pre-commit-hooks` now is type checked with mypy.
- #360 PR by @asottile.
2.1.0
=====

View File

@ -14,7 +14,7 @@ See also: https://github.com/pre-commit/pre-commit
Add this to your `.pre-commit-config.yaml`
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0 # Use the ref you want to point at
rev: v2.2.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
# - id: ...

View File

@ -1,6 +1,6 @@
[metadata]
name = pre_commit_hooks
version = 2.1.0
version = 2.2.0
description = Some out-of-the-box hooks for pre-commit.
long_description = file: README.md
long_description_content_type = text/markdown