diff --git a/.copier-answers.yml b/.copier-answers.yml index 0b0fadc..d2c8bf2 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # This file is managed by Copier; DO NOT EDIT OR REMOVE. -_commit: v0.1.9 +_commit: v0.1.10 _src_path: git@github.com:Quantco/copier-template-pre-commit-mirrors.git conda_package: yamllint description: This hook runs yamllint. yamllint does not only check for syntax validity, diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index af89a6d..7e4ceae 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout branch uses: actions/checkout@v4 - name: Set up Conda env - uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 + uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc with: environment-file: environment.yml environment-name: check-env @@ -34,7 +34,7 @@ jobs: echo "pkgname=$pkgname" >> $GITHUB_OUTPUT echo "new-version=$new_version" >> $GITHUB_OUTPUT fi - - uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc + - uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f if: steps.versions.outputs.pkgname with: commit-message: "Update ${{ steps.versions.outputs.pkgname }} to ${{ steps.versions.outputs.new-version }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b5bf0c..74ce8e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,16 +7,23 @@ on: pull_request: jobs: + pre-commit-checks: + name: Pre-commit Checks + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v4 + - name: Run pre-commit-conda + uses: quantco/pre-commit-conda@v1 env: name: Test env runs-on: ubuntu-latest steps: - name: Checkout branch uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - name: Set up Conda env - uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 + uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc with: environment-file: environment.yml environment-name: test-env diff --git a/.github/workflows/keep-alive.yml b/.github/workflows/keep-alive.yml index 00eb81c..f0f989b 100644 --- a/.github/workflows/keep-alive.yml +++ b/.github/workflows/keep-alive.yml @@ -11,4 +11,4 @@ jobs: actions: write steps: - uses: actions/checkout@v4 - - uses: gautamkrishnar/keepalive-workflow@14b7c72e9af14bddbbc1022a6f0bd20b1eac2619 + - uses: gautamkrishnar/keepalive-workflow@995aec69bb3f2b45b20f4e107907992c8715086d diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..830ad28 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +exclude: ^\.copier-answers\.yml$ +repos: + - repo: https://github.com/Quantco/pre-commit-mirrors-pre-commit-hooks + rev: 4.5.0 + hooks: + - id: trailing-whitespace-conda + - id: end-of-file-fixer-conda + - id: check-merge-conflict-conda + args: ["--assume-in-merge"]