From c548b6a26a73b7a1e7df72eb9c8b711932e4d7cf Mon Sep 17 00:00:00 2001 From: Justin Goheen <26209687+JustinGoheen@users.noreply.github.com> Date: Thu, 26 Jan 2023 07:43:02 -0500 Subject: [PATCH 1/4] update python version --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 776ad865582..6d712917e47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,11 @@ # limitations under the License. default_language_version: - python: python3.8 + python: python3 ci: autofix_prs: true - autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' + autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions" autoupdate_schedule: quarterly # submodules: true @@ -34,7 +34,7 @@ repos: - id: check-executables-have-shebangs - id: check-case-conflict - id: check-added-large-files - args: ['--maxkb=100', '--enforce-all'] + args: ["--maxkb=100", "--enforce-all"] - id: detect-private-key - repo: https://github.com/asottile/pyupgrade @@ -72,10 +72,10 @@ repos: - mdformat-black - mdformat_frontmatter exclude: | - (?x)^( - CHANGELOG.md| - docs/paper_JOSS/paper.md - )$ + (?x)^( + CHANGELOG.md| + docs/paper_JOSS/paper.md + )$ - repo: https://github.com/asottile/yesqa rev: v1.4.0 @@ -83,7 +83,7 @@ repos: - id: yesqa - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.226' + rev: "v0.0.226" hooks: - id: ruff # Respect `exclude` and `extend-exclude` settings. From 6646e287f44cde03bf41dacc5492ef292a063ac0 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 26 Jan 2023 13:48:39 +0100 Subject: [PATCH 2/4] Apply suggestions from code review --- .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 6d712917e47..5269377879c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,7 +83,7 @@ repos: - id: yesqa - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.226" + rev: v0.0.233 hooks: - id: ruff # Respect `exclude` and `extend-exclude` settings. From 8fcfc5a403cb9e355810ea6d43601d4f8c660c93 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 26 Jan 2023 13:50:10 +0100 Subject: [PATCH 3/4] ruff --- .pre-commit-config.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5269377879c..40dd841e37a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -86,8 +86,4 @@ repos: rev: v0.0.233 hooks: - id: ruff - # Respect `exclude` and `extend-exclude` settings. - args: - - "--fix" - - "--respect-gitignore" - - "--force-exclude" + args: "--fix" From c275dfe3f531a39cbcfa123b5f45cf1afb9111d6 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 26 Jan 2023 13:51:04 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- .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 40dd841e37a..245a547b90d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -86,4 +86,4 @@ repos: rev: v0.0.233 hooks: - id: ruff - args: "--fix" + args: ["--fix"]