diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 814d6fe4..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,17 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "pip" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - # Check for updates to GitHub Actions every week - interval: "weekly" diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..d3b19674 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "automerge": true, + "lockFileMaintenance": { + "enabled": true, + "schedule": [ + "on friday before 3pm" + ] + }, + "pre-commit": { + "enabled": true, + "schedule": [ + "on the first day of the month before 6am" + ], + "packageRules": [ + { + "groupName": "pre-commit hooks", + "groupSlug": "pre-commit", + "labels": [ + "pre-commit", + "dependencies" + ], + "matchDepTypes": ["repository"] + } + ] + }, + "labels": [ + "renovate" + ] +} diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 7e8df119..7533fdd3 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/marimo@v2.0.6 + - uses: cvxgrp/.github/actions/uv/marimo@v2.0.8 sphinx: runs-on: "ubuntu-latest" @@ -18,7 +18,7 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/sphinx@v2.0.6 + - uses: cvxgrp/.github/actions/uv/sphinx@v2.0.13 test: runs-on: "ubuntu-latest" @@ -26,7 +26,7 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/coverage@v2.0.6 + - uses: cvxgrp/.github/actions/uv/coverage@v2.0.8 jupyter: runs-on: "ubuntu-latest" @@ -34,7 +34,7 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/jupyter@v2.0.6 + - uses: cvxgrp/.github/actions/uv/jupyter@v2.0.8 book: runs-on: "ubuntu-latest" @@ -47,4 +47,4 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/book@v2.0.6 + - uses: cvxgrp/.github/actions/book@v2.0.8 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f8f60b3..3019a845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,6 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/test@v2.0.6 + - uses: cvxgrp/.github/actions/uv/test@v2.0.8 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index f4593b21..41e7bf09 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/coverage@v2.0.6 + - uses: cvxgrp/.github/actions/uv/coverage@v2.0.8 - name: Coveralls GitHub Action uses: coverallsapp/github-action@v2 @@ -24,4 +24,14 @@ jobs: - name: Checkout [${{ github.repository }}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/deptry@v2.0.6 + - uses: cvxgrp/.github/actions/uv/deptry@v2.0.8 + + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout [${{ github.repository }}] + uses: actions/checkout@v4 + + - uses: pre-commit/action@v3.0.1 + with: + extra_args: '--verbose --all-files' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed8088ab..904f02b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,18 +1,20 @@ name: Bump version and publish on: - workflow_run: - workflows: [ "CI" ] - types: [ completed ] + workflow_dispatch: + #workflow_run: + # workflows: [ "CI" ] + # types: [ completed ] jobs: tag: permissions: contents: write - if: > - github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.head_branch == 'main' + #if: > + # github.event_name == 'workflow_dispatch' || + # (github.event.workflow_run.conclusion == 'success' && + # github.event.workflow_run.head_branch == 'main') runs-on: ubuntu-latest @@ -24,25 +26,3 @@ jobs: uses: cvxgrp/.github/actions/uv/tag@v2.0.9 with: github_token: ${{ secrets.GITHUB_TOKEN }} - - publish: - needs: tag - runs-on: ubuntu-latest - environment: release - - permissions: - contents: read - # This permission is required for trusted publishing. - id-token: write - - steps: - - name: Checkout [${{ github.repository }}] - uses: actions/checkout@v4 - - - uses: actions/download-artifact@v4 - with: - name: dist - path: dist - - - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20330c14..68d731f8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.9.2' + rev: 'v0.9.3' hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] @@ -16,7 +16,7 @@ repos: - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.43.0 + rev: v0.44.0 hooks: - id: markdownlint diff --git a/.python-version b/.python-version deleted file mode 100644 index e4fba218..00000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.12