Skip to content

Commit ed39bc0

Browse files
authored
Merge pull request #79 from dstansby/more-ruff
Use ruff for more checks
2 parents e1d3c50 + 5586981 commit ed39bc0

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,30 @@ repos:
55
- id: check-docstring-first
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
8+
89
- repo: https://github.com/asottile/setup-cfg-fmt
910
rev: v2.2.0
1011
hooks:
1112
- id: setup-cfg-fmt
12-
- repo: https://github.com/PyCQA/flake8
13-
rev: 6.0.0
14-
hooks:
15-
- id: flake8
16-
additional_dependencies: [flake8-typing-imports>=1.9.0]
17-
- repo: https://github.com/PyCQA/autoflake
18-
rev: v2.1.1
19-
hooks:
20-
- id: autoflake
21-
args: ["--in-place", "--remove-all-unused-imports"]
22-
- repo: https://github.com/PyCQA/isort
23-
rev: 5.12.0
24-
hooks:
25-
- id: isort
13+
2614
- repo: https://github.com/psf/black
2715
rev: 23.3.0
2816
hooks:
2917
- id: black
30-
- repo: https://github.com/asottile/pyupgrade
31-
rev: v3.3.2
32-
hooks:
33-
- id: pyupgrade
34-
args: [--py38-plus, --keep-runtime-typing]
18+
3519
- repo: https://github.com/tlambert03/napari-plugin-checks
3620
rev: v0.3.0
3721
hooks:
3822
- id: napari-plugin-checks
23+
3924
- repo: https://github.com/pre-commit/mirrors-mypy
4025
rev: v1.2.0
4126
hooks:
4227
- id: mypy
4328
args: ["--disallow-incomplete-defs", "--ignore-missing-imports"]
29+
30+
- repo: https://github.com/charliermarsh/ruff-pre-commit
31+
# Ruff version.
32+
rev: 'v0.0.264'
33+
hooks:
34+
- id: ruff

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ line-length = 79
1212
[tool.isort]
1313
profile = "black"
1414
line_length = 79
15+
16+
[tool.ruff]
17+
18+
target-version = "py38"
19+
select = ["I", "UP", "F", "E", "W"]
20+
fix = true

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy