Skip to content

Commit

Permalink
Update versions and use ruff instead of flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
arekm committed Sep 4, 2024
1 parent 53eef30 commit 08a8cc5
Showing 1 changed file with 8 additions and 34 deletions.
42 changes: 8 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^setup.py
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -12,44 +12,18 @@ repos:
- id: check-merge-conflict
- id: fix-encoding-pragma
args: ["--remove"]
- repo: https://github.com/OctoPrint/codemods
rev: "0.6.3"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: codemod_batch
args:
[
"--check",
"not_in",
"--check",
"detect_past_builtins_imports",
"--ignore",
"setup.py"
]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
additional_dependencies:
- click==8.0.4
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.3.20
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v2.7.1
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.8.0
rev: v8.35.0
hooks:
- id: eslint
additional_dependencies:
- eslint@7.19.0
- eslint-plugin-cypress@2.11.2
files: \.js$

0 comments on commit 08a8cc5

Please sign in to comment.