From b211626b14fe1a27a2cf80f4fef0d164ef3fcedd Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Wed, 10 Jan 2024 21:29:02 -0500 Subject: [PATCH] Update pre-commit --- .github/workflows/main.yml | 7 ------- .pre-commit-config.yaml | 24 ++++++++++-------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85ed694..214b18f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,3 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install - run: npm run build --if-present - - 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 239b8e0..72eb264 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +ci: + # autoupdate_schedule: quarterly + autofix_prs: false + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 @@ -10,25 +14,17 @@ repos: - id: pretty-format-json args: ['--autofix', '--indent=2', '--no-sort-keys'] - - repo: https://github.com/ambv/black - rev: 21.5b2 + - repo: https://github.com/psf/black + rev: 23.3.0 hooks: - id: black args: ['--line-length', '100', '--skip-string-normalization'] - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 - hooks: - - id: flake8 - - - 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.8.0 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: 'v0.0.260' hooks: - - id: isort + - id: ruff + args: ['--fix'] - repo: https://github.com/pre-commit/mirrors-prettier rev: 'v2.2.1'