From 28f8af02bd61ccb7c6576364f56a87d9885660e5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 07:17:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d672cdc..c901e9f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: rst-inline-touching-normal - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black exclude: ^docs/ From 4212ce1751318f606186f766a3630e91bb210594 Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:12:14 -0400 Subject: [PATCH 2/2] update black, exclude ipynb from json fixes --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c901e9f3..7551a387 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: rev: v3.10.1 hooks: - id: pyupgrade - args: ['--py39-plus'] + args: [ '--py39-plus' ] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: @@ -17,6 +17,7 @@ repos: - id: check-json - id: pretty-format-json args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ] + exclude: .ipynb - id: check-yaml args: [ '--allow-multiple-documents' ] - repo: https://github.com/pre-commit/pygrep-hooks @@ -38,23 +39,23 @@ repos: rev: 5.12.0 hooks: - id: isort - args: ['--profile=black', '--filter-files', "--add_imports='from __future__ import annotations'"] + args: [ '--profile=black', '--filter-files', "--add_imports='from __future__ import annotations'" ] exclude: ^docs/ - repo: https://github.com/pycqa/pydocstyle rev: 6.3.0 hooks: - id: pydocstyle - args: ['--convention=numpy', '--match="(?!test_).*\.py"'] + args: [ '--convention=numpy', '--match="(?!test_).*\.py"' ] - repo: https://github.com/keewis/blackdoc rev: v0.3.8 hooks: - id: blackdoc - additional_dependencies: [ 'black==23.3.0' ] + additional_dependencies: [ 'black==23.9.1' ] - repo: https://github.com/adrienverge/yamllint.git rev: v1.32.0 hooks: - id: yamllint - args: ['--config-file', '.yamllint.yaml'] + args: [ '--config-file', '.yamllint.yaml' ] # Git version too old on server # - repo: https://github.com/mgedmin/check-manifest # rev: "0.49"