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

style: bump black #3831

Merged
merged 2 commits into from
Mar 28, 2022
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
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:

# Black, the code formatter, natively supports pre-commit
- repo: https://github.com/psf/black
rev: "22.1.0" # Keep in sync with blacken-docs
rev: "22.3.0" # Keep in sync with blacken-docs
hooks:
- id: black

Expand All @@ -55,7 +55,7 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- black==22.1.0 # keep in sync with black hook
- black==22.3.0 # keep in sync with black hook

# Changes tabs to spaces
- repo: https://github.com/Lucas-C/pre-commit-hooks
Expand All @@ -74,6 +74,8 @@ repos:
rev: "v1.2.5"
hooks:
- id: pycln
additional_dependencies: [click<8.1] # Unpin when typer updates
stages: [manual]

# Checking for common mistakes
- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down Expand Up @@ -106,7 +108,7 @@ repos:

# PyLint has native support - not always usable, but works for us
- repo: https://github.com/PyCQA/pylint
rev: "v2.12.2"
rev: "v2.13.2"
hooks:
- id: pylint
files: ^pybind11
Expand All @@ -122,7 +124,7 @@ repos:

# Check static types with mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.941"
rev: "v0.942"
hooks:
- id: mypy
args: [--show-error-codes]
Expand Down