diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 27749d4..cc1fefc 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -6,6 +6,9 @@ commitMessageLowerCase: 'never', configMigration: true, dependencyDashboard: true, + "pre-commit": { + enabled: true + }, customManagers: [ { customType: 'regex', @@ -25,6 +28,18 @@ packageNameTemplate: 'rust-lang/rust', datasourceTemplate: 'github-releases', }, + { + customType: 'regex', + managerFilePatterns: [ + '/^\\.github/workflows/pre-commit.yml$/', + ], + matchStrings: [ + 'prek-version.*?(?\\d+\\.\\d+(\\.\\d+)?)', + ], + depNameTemplate: 'prek', + packageNameTemplate: 'j178/prek', + datasourceTemplate: 'github-releases', + }, ], packageRules: [ { @@ -41,6 +56,20 @@ ], automerge: true, }, + { + commitMessageTopic: 'Prek', + matchManagers: [ + 'custom.regex', + ], + matchDepNames: [ + 'prek', + ], + extractVersion: '^(?\\d+\\.\\d+\\.\\d+)', + schedule: [ + '* * * * *', + ], + automerge: true, + }, // Goals: // - Keep version reqs low, ignoring compatible normal/build dependencies // - Take advantage of latest dev-dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1755c7c..3545b0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,10 @@ jobs: run: cargo hack test --each-feature --workspace msrv: name: "Check MSRV" - runs-on: ubuntu-latest + strategy: + matrix: + os: ["ubuntu-latest"] + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v6 @@ -70,7 +73,10 @@ jobs: run: cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going minimal-versions: name: Minimal versions - runs-on: ubuntu-latest + strategy: + matrix: + os: ["ubuntu-latest"] + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9eabc67..ef1a54a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -23,7 +23,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 + - uses: j178/prek-action@v1 with: - python-version: '3.x' - - uses: pre-commit/action@v3.0.1 + prek-version: '0.2.27' diff --git a/.github/workflows/rust-next.yml b/.github/workflows/rust-next.yml index 5af6da7..8e4a1e9 100644 --- a/.github/workflows/rust-next.yml +++ b/.github/workflows/rust-next.yml @@ -46,7 +46,12 @@ jobs: run: cargo hack test --each-feature --workspace latest: name: "Check latest dependencies" - runs-on: ubuntu-latest + strategy: + matrix: + os: ["ubuntu-latest"] + runs-on: ${{ matrix.os }} + env: + CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: allow steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 656c68e..bc4c740 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,10 +10,10 @@ repos: - id: check-case-conflict - id: detect-private-key - repo: https://github.com/crate-ci/typos - rev: v1.32.0 + rev: v1.41.0 hooks: - id: typos - repo: https://github.com/crate-ci/committed - rev: v1.1.7 + rev: v1.1.9 hooks: - id: committed diff --git a/Cargo.toml b/Cargo.toml index 134c035..53f047c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,7 +78,6 @@ str_to_string = "warn" string_add = "warn" string_add_assign = "warn" string_lit_as_bytes = "warn" -string_to_string = "warn" todo = "warn" trait_duplication_in_bounds = "warn" uninlined_format_args = "warn"