mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 12:34:17 +00:00
v2.2.0
This commit is contained in:
parent
f67747875e
commit
7905d805af
4 changed files with 34 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: v2.1.0
|
rev: v2.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
|
||||||
31
CHANGELOG.md
31
CHANGELOG.md
|
|
@ -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
|
2.1.0
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,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: v2.1.0 # Use the ref you want to point at
|
rev: v2.2.0 # Use the ref you want to point at
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
# - id: ...
|
# - id: ...
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = pre_commit_hooks
|
name = pre_commit_hooks
|
||||||
version = 2.1.0
|
version = 2.2.0
|
||||||
description = Some out-of-the-box hooks for pre-commit.
|
description = Some out-of-the-box hooks for pre-commit.
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue