diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 86815d0..fc99eda 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83122c5..6088958 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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