Skip to content

Commit

Permalink
Use ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit9126 committed Nov 28, 2023
1 parent f7f6070 commit b29d47d
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 858 deletions.
16 changes: 7 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
rev: 1.7.0
hooks:
- id: poetry-check
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1 # keep in sync with pyproject.toml
hooks:
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.3 # keep in sync with pyproject.toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6 # keep in sync with pyproject.toml
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]
args: [--fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
Expand All @@ -34,7 +32,7 @@ repos:
args: [-l 90]
additional_dependencies: [black==23.10.1] # keep in sync with black above
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v3.1.0
hooks:
- id: prettier
args: ["--print-width", "120"]
Expand Down
Loading

0 comments on commit b29d47d

Please sign in to comment.