Skip to content

Commit

Permalink
update black version in pre-commit
Browse files Browse the repository at this point in the history
As inidicated in psf/black#420 the mutable tag is not appropriate,
so we change to pin a fixed version tag.

Additionally, we remove the black version dependency from
blacken-docs, and add blacken-docs to the requirements-dev.txt file.
  • Loading branch information
Leighton Pritchard committed May 27, 2021
1 parent 0670243 commit 2ddcf26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 21.5b1
hooks:
- id: black
language_version: python3
- repo: https://github.com/asottile/blacken-docs
rev: v0.3.0
rev: v1.10.0
hooks:
- id: blacken-docs
additional_dependencies: [black==18.9b0]
additional_dependencies: [black]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
@@ -1,5 +1,6 @@
bandit
black
blacken-docs
codecov
coverage
doc8
Expand Down

0 comments on commit 2ddcf26

Please sign in to comment.