Skip to content

Commit b27035c

Browse files
committed
Added new pre-commit hooks
1 parent 4a9874f commit b27035c

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,25 @@
11
repos:
2-
# - repo: https://github.com/pre-commit/pre-commit-hooks
3-
# rev: v4.0.1
4-
# hooks:
5-
# - id: check-docstring-first
6-
# - id: end-of-file-fixer
7-
# - id: trailing-whitespace
8-
# - repo: https://github.com/asottile/setup-cfg-fmt
9-
# rev: v1.20.0
10-
# hooks:
11-
# - id: setup-cfg-fmt
12-
# - repo: https://github.com/PyCQA/flake8
13-
# rev: 4.0.1
14-
# hooks:
15-
# - id: flake8
16-
# additional_dependencies: [flake8-typing-imports>=1.9.0]
17-
# - repo: https://github.com/myint/autoflake
18-
# rev: v1.4
19-
# hooks:
20-
# - id: autoflake
21-
# args: ["--in-place", "--remove-all-unused-imports"]
22-
# - repo: https://github.com/PyCQA/isort
23-
# rev: 5.10.1
24-
# hooks:
25-
# - id: isort
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-docstring-first
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/pycqa/isort
9+
rev: 5.12.0
10+
hooks:
11+
- id: isort
2612
- repo: https://github.com/charliermarsh/ruff-pre-commit
2713
# Ruff version.
28-
rev: 'v0.0.257'
14+
rev: 'v0.0.262'
2915
hooks:
3016
- id: ruff
3117
args: [ --fix, --exit-non-zero-on-fix ]
3218
- repo: https://github.com/psf/black
33-
rev: 22.3.0
19+
rev: 23.3.0
3420
hooks:
3521
- id: black
3622
args: [--line-length=79]
37-
# - repo: https://github.com/asottile/pyupgrade
38-
# rev: v2.29.1
39-
# hooks:
40-
# - id: pyupgrade
41-
# args: [--py38-plus, --keep-runtime-typing]
4223
- repo: https://github.com/tlambert03/napari-plugin-checks
4324
rev: v0.3.0
4425
hooks:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ dev = [
5858
"isort",
5959
"black",
6060
"ruff",
61+
"pre-commit",
6162
]
6263
docs = [
6364
"sphinx",
@@ -71,4 +72,4 @@ test = [
7172
"coverage",
7273
"tox",
7374
"twine",
74-
]
75+
]

0 commit comments

Comments
 (0)