diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 6e0c3df..f850425 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -19,3 +19,10 @@ updates: interval: "weekly" cooldown: default-days: 3 + + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2a6d057 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: "https://github.com/pre-commit/pre-commit-hooks" + rev: "v6.0.0" + hooks: + - id: "check-case-conflict" + - id: "check-merge-conflict" + - id: "check-toml" + - id: "check-yaml" + - id: "end-of-file-fixer" + - id: "trailing-whitespace" + - id: "mixed-line-ending" + - id: "debug-statements" + + - repo: "https://github.com/astral-sh/ruff-pre-commit" + rev: "v0.16.6" + hooks: + - id: "ruff-check" + args: ["--fix", "--show-fixes"] + - id: "ruff-format" diff --git a/CHANGELOG.md b/CHANGELOG.md index 9432d8e..f9ceb82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Stricter type checking from ruff/ty. ([@brews](https://github.com/brews), [PR#125](https://github.com/ClimateImpactLab/isku/pull/125)) +- Switch prek.toml to .pre-commit.yaml for dependabot updates. ([@brews](https://github.com/brews), [PR#174](https://github.com/ClimateImpactLab/isku/pull/174)) ## [0.4.0] - 2026-07-24 diff --git a/prek.toml b/prek.toml deleted file mode 100644 index d5d1c8c..0000000 --- a/prek.toml +++ /dev/null @@ -1,21 +0,0 @@ -[[repos]] -repo = "https://github.com/pre-commit/pre-commit-hooks" -rev = "v6.0.0" -hooks = [ - { id = "check-case-conflict" }, - { id = "check-merge-conflict" }, - { id = "check-toml" }, - { id = "check-yaml" }, - { id = "end-of-file-fixer" }, - { id = "trailing-whitespace" }, - { id = "mixed-line-ending" }, - { id = "debug-statements" }, -] - -[[repos]] -repo = "https://github.com/astral-sh/ruff-pre-commit" -rev = "v0.16.6" -hooks = [ - { id = "ruff-check", args = ["--fix", "--show-fixes"] }, - { id = "ruff-format" }, -]