Skip to content

Commit

Permalink
Pre commit update + dependabot CI fix (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmorling authored Dec 19, 2024
1 parent a370d57 commit 5b7b070
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
dev:
if: github.event.pull_request.user.login != 'dependabot[bot]'
uses: ./.github/workflows/tests.yml
with:
io: "io"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/link_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nb_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 10 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 5b7b070

Please sign in to comment.