Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️πŸͺ update pre-commit hooks #385

Merged
merged 3 commits into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ repos:

# Clean jupyter notebooks
- repo: https://github.com/srstevenson/nb-clean
rev: 3.0.1
rev: 3.1.0
hooks:
- id: nb-clean

# Handling unwanted unicode characters
- repo: https://github.com/sirosen/texthooks
rev: 0.5.0
rev: 0.6.2
hooks:
- id: fix-ligatures
- id: fix-smartquotes
Expand All @@ -51,14 +51,14 @@ repos:

# Run ruff (subsumes pyupgrade, isort, flake8+plugins, and more)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.1.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

# Run code formatting with Black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1 # Keep in sync with blacken-docs
rev: 23.10.0 # Keep in sync with blacken-docs
hooks:
- id: black-jupyter

Expand All @@ -68,11 +68,11 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- black==23.9.1 # keep in sync with black hook
- black==23.10.0 # keep in sync with black hook

# Check static types with mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
rev: v1.6.1
hooks:
- id: mypy
files: ^(src/mqt|test/python)
Expand All @@ -92,7 +92,7 @@ repos:

# Clang-format the C++ part of the code base automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.2
rev: v17.0.3
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down