Skip to content

Commit a566184

Browse files
chore: update pre-commit hooks (#159)
* chore: update pre-commit hooks updates: - [github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.10.1](psf/black-pre-commit-mirror@23.9.1...23.10.1) - [github.com/astral-sh/ruff-pre-commit: v0.1.0 → v0.1.3](astral-sh/ruff-pre-commit@v0.1.0...v0.1.3) - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](pre-commit/mirrors-mypy@v1.6.0...v1.6.1) * chore: move to ruff-format Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent e29e2cb commit a566184

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.pre-commit-config.yaml

+4-9
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,17 @@ repos:
3333
- id: requirements-txt-fixer
3434
- id: trailing-whitespace
3535

36-
# Black, the code formatter, natively supports pre-commit
37-
- repo: https://github.com/psf/black-pre-commit-mirror
38-
rev: 23.9.1
39-
hooks:
40-
- id: black
41-
exclude: ^(docs)
42-
4336
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: "v0.1.0"
37+
rev: "v0.1.3"
4538
hooks:
4639
- id: ruff
4740
args: ["--fix", "--show-fixes"]
41+
- id: ruff-format
42+
exclude: ^(docs)
4843

4944
# Checking static types
5045
- repo: https://github.com/pre-commit/mirrors-mypy
51-
rev: "v1.6.0"
46+
rev: "v1.6.1"
5247
hooks:
5348
- id: mypy
5449
files: "setup.py"

pyproject.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ test-skip = ["*universal2:arm64"]
3838
before-build = "rm -rf {project}/build"
3939

4040
[tool.ruff]
41+
target-version = "py37"
42+
43+
[tool.ruff.lint]
4144
extend-select = [
4245
"B", # flake8-bugbear
43-
"B904",
4446
"I", # isort
4547
"PGH", # pygrep-hooks
4648
"RUF", # Ruff-specific
4749
"UP", # pyupgrade
4850
]
49-
extend-ignore = [
50-
"E501", # Line too long
51-
]
52-
target-version = "py37"

0 commit comments

Comments
 (0)