File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,6 @@ repos:
25
25
files : \.(md|rst|yml|yaml)
26
26
args : [--prose-wrap=preserve]
27
27
28
- - repo : https://github.com/psf/black
29
- rev : 552baf822992936134cbd31a38f69c8cfe7c0f05 # frozen: 24.3.0
30
- hooks :
31
- - id : black
32
-
33
- - repo : https://github.com/adamchainz/blacken-docs
34
- rev : 960ead214cd1184149d366c6d27ca6c369ce46b6 # frozen: 1.16.0
35
- hooks :
36
- - id : blacken-docs
37
-
38
28
- repo : https://github.com/MarcoGorelli/cython-lint
39
29
rev : 582556b052c898dc484a981bea48de3284a4b8ee # frozen: v0.16.0
40
30
hooks :
46
36
hooks :
47
37
- id : ruff
48
38
args : [--fix, --exit-non-zero-on-fix]
39
+ - id : ruff-format
49
40
50
41
- repo : https://github.com/codespell-project/codespell
51
42
rev : " 6e41aba91fb32e9feb741a6258eefeb9c6e4a482" # frozen: v2.2.6
Original file line number Diff line number Diff line change
1
+ target-version = " py310"
2
+
3
+ [lint ]
1
4
select = [
2
5
" UP" , # pyupgrade
3
6
" C4" , # flake8-comprehensions
4
7
" E713" , # use 'key not in list'
8
+ " NPY201" , # NumPy 2 compatibility
5
9
" PIE" , # flake8-pie
6
10
" PGH003" , # forbid blanket 'type: ignore' comments
7
11
" PLR0402" , # useless import alias
@@ -12,4 +16,5 @@ select = [
12
16
" SIM2" , # simplify boolean comparisons
13
17
]
14
18
15
- target-version = " py310"
19
+ [format ]
20
+ docstring-code-format = true
You can’t perform that action at this time.
0 commit comments