Skip to content

Commit

Permalink
Merge pull request #1128 from qiboteam/pre-commit-ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido authored Jan 16, 2025
2 parents b873571 + af0c97c commit 149ad22
Show file tree
Hide file tree
Showing 18 changed files with 1,403 additions and 2,625 deletions.
26 changes: 11 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ repos:
- id: check-yaml
- id: check-toml
- id: debug-statements
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/PyCQA/docformatter
rev: master
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place, --config, ./pyproject.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Sort imports
- id: ruff
args: [--select, I, --fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
Expand Down
Loading

0 comments on commit 149ad22

Please sign in to comment.