diff --git a/.github/workflows/io_tests.yaml b/.github/workflows/io_tests.yaml index 02de3b77..2b291e67 100644 --- a/.github/workflows/io_tests.yaml +++ b/.github/workflows/io_tests.yaml @@ -8,6 +8,7 @@ on: jobs: dev: + if: github.event.pull_request.user.login != 'dependabot[bot]' uses: ./.github/workflows/tests.yml with: io: "io" diff --git a/.github/workflows/link_issue.yml b/.github/workflows/link_issue.yml index b9de19f7..8e7d894f 100644 --- a/.github/workflows/link_issue.yml +++ b/.github/workflows/link_issue.yml @@ -6,6 +6,7 @@ on: jobs: check-linked-issue: + if: github.event.pull_request.user.login != 'dependabot[bot]' runs-on: ubuntu-latest steps: - name: Verify Linked Issue diff --git a/.github/workflows/nb_tests.yml b/.github/workflows/nb_tests.yml index 9efbd9ce..a18cf818 100644 --- a/.github/workflows/nb_tests.yml +++ b/.github/workflows/nb_tests.yml @@ -13,6 +13,7 @@ env: jobs: run_unit_tests: + if: github.event.pull_request.user.login != 'dependabot[bot]' runs-on: ubuntu-latest steps: - name: Checkout branch diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a726ec89..62c7b2ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,28 +1,20 @@ +ci: + autoupdate_schedule: monthly repos: - - repo: https://github.com/python/black - rev: 22.3.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: "v0.8.3" hooks: - - id: black-jupyter - args: ['--line-length=120'] - - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 - hooks: - - id: flake8 - args: ['--ignore=E203,W503', '--max-line-length=120'] - # - repo: https://github.com/PyCQA/isort - # rev: 5.10.1 - # hooks: - # - id: isort - # args: ['-m3', '--tc'] + # Run the linter and absolufy-imports. + - id: ruff + args: [--fix] + # Run the formatter. + - id: ruff-format - repo: https://github.com/kynan/nbstripout rev: 0.5.0 hooks: - id: nbstripout args: ["--extra-keys", "metadata.colab metadata.vscode cell.metadata.colab cell.metadata.executionInfo cell.metadata.id cell.metadata.outputId", "--strip-empty-cells"] - - repo: https://github.com/MarcoGorelli/absolufy-imports - rev: v0.3.1 - hooks: - - id: absolufy-imports - repo: https://github.com/codespell-project/codespell rev: v2.1.0 hooks: