File tree 2 files changed +7
-14
lines changed
2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,17 @@ repos:
33
33
- id : requirements-txt-fixer
34
34
- id : trailing-whitespace
35
35
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
-
43
36
- repo : https://github.com/astral-sh/ruff-pre-commit
44
- rev : " v0.1.0 "
37
+ rev : " v0.1.3 "
45
38
hooks :
46
39
- id : ruff
47
40
args : ["--fix", "--show-fixes"]
41
+ - id : ruff-format
42
+ exclude : ^(docs)
48
43
49
44
# Checking static types
50
45
- repo : https://github.com/pre-commit/mirrors-mypy
51
- rev : " v1.6.0 "
46
+ rev : " v1.6.1 "
52
47
hooks :
53
48
- id : mypy
54
49
files : " setup.py"
Original file line number Diff line number Diff line change @@ -38,15 +38,13 @@ test-skip = ["*universal2:arm64"]
38
38
before-build = " rm -rf {project}/build"
39
39
40
40
[tool .ruff ]
41
+ target-version = " py37"
42
+
43
+ [tool .ruff .lint ]
41
44
extend-select = [
42
45
" B" , # flake8-bugbear
43
- " B904" ,
44
46
" I" , # isort
45
47
" PGH" , # pygrep-hooks
46
48
" RUF" , # Ruff-specific
47
49
" UP" , # pyupgrade
48
50
]
49
- extend-ignore = [
50
- " E501" , # Line too long
51
- ]
52
- target-version = " py37"
You can’t perform that action at this time.
0 commit comments