Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jan 11, 2024
1 parent 23d0d7c commit 08f8b70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 34 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,3 @@ jobs:
uses: jupyterhub/repo2docker-action@master
with:
NO_PUSH: "true"

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2.2.2
- uses: pre-commit/action@v2.0.3
44 changes: 17 additions & 27 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,29 @@ repos:
- id: pretty-format-json
args: ["--autofix", "--indent=2", "--no-sort-keys"]

- repo: https://github.com/ambv/black
rev: 20.8b1
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: ["--line-length", "100"]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.260"
hooks:
- id: flake8
- id: ruff
args: ["--fix"]

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.7.0
hooks:
- id: isort

- repo: https://github.com/deathbeds/prenotebook
rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa
hooks:
- id: prenotebook
args:
[
"--keep-output",
"--verify-order",
"--line-width",
"100",
"--keep-execution-count",
]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-ruff
args: ["--fix"]
- id: nbqa-isort
args: ["--profile=black"]
additional_dependencies: [isort==5.6.4]
- id: nbqa-black
- id: nbqa-pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
Expand Down

0 comments on commit 08f8b70

Please sign in to comment.