diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2022-05-17 15:16:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:16:00 -0700 |
commit | 53dd99c28054011a98b6063312483b453b7c50d0 (patch) | |
tree | 8fad3a06537e57d6ef4954b84bbbd2698f8a815c | |
parent | 0e9a1cb332f6daf57dd50eb79dacfc9443a94340 (diff) | |
download | numpydoc-53dd99c28054011a98b6063312483b453b7c50d0.tar.gz |
Update pre-commit (#396)
* Update pre-commit
* Use blacken-docs
-rw-r--r-- | .pre-commit-config.yaml | 9 | ||||
-rw-r--r-- | requirements/developer.txt | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 444e7ef..62735e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -28,8 +28,13 @@ repos: files: \.(html|md|yml|yaml) args: [--prose-wrap=preserve] + - repo: https://github.com/asottile/blacken-docs + rev: v1.12.1 + hooks: + - id: blacken-docs + - repo: https://github.com/asottile/pyupgrade - rev: v2.31.1 + rev: v2.32.1 hooks: - id: pyupgrade args: [--py37-plus] diff --git a/requirements/developer.txt b/requirements/developer.txt index 7abea0b..e350275 100644 --- a/requirements/developer.txt +++ b/requirements/developer.txt @@ -1 +1 @@ -pre-commit>=2.18 +pre-commit>=2.19 |