@@ -20,10 +20,50 @@ spectree = "^1.2.10"
20
20
deepmerge = " ^1.1.1"
21
21
sentry-sdk = " ^2.7.1"
22
22
23
- [tool .poetry .dev-dependencies ]
24
- flake8 = " ^7.1.0"
25
- flake8-annotations = " ^3.1.1"
23
+ [tool .poetry .group .dev .dependencies ]
24
+ ruff = " ^0.5.1"
26
25
27
26
[build-system ]
28
27
requires = [" poetry>=0.12" ]
29
28
build-backend = " poetry.masonry.api"
29
+
30
+ [tool .ruff ]
31
+ target-version = " py312"
32
+ extend-exclude = [" .cache" ]
33
+ line-length = 100
34
+ unsafe-fixes = true
35
+ preview = true
36
+ output-format = " concise"
37
+
38
+ [tool .ruff .lint ]
39
+ select = [" ALL" ]
40
+ ignore = [
41
+ " ANN002" , " ANN003" , " ANN101" , " ANN102" , " ANN204" , " ANN206" , " ANN401" ,
42
+ " B904" ,
43
+ " C401" , " C408" ,
44
+ " CPY001" ,
45
+ " D100" , " D104" , " D105" , " D107" , " D203" , " D212" , " D214" , " D215" , " D301" ,
46
+ " D400" , " D401" , " D402" , " D404" , " D405" , " D406" , " D407" , " D408" , " D409" , " D410" , " D411" , " D412" , " D413" , " D414" , " D416" , " D417" ,
47
+ " E731" ,
48
+ " RET504" ,
49
+ " RUF005" ,
50
+ " S311" ,
51
+ " SIM102" , " SIM108" ,
52
+ " PD" ,
53
+ " PLR0913" , " PLR0917" , " PLR6301" ,
54
+ " DTZ003" ,
55
+ " INP001" ,
56
+ " D102" ,
57
+ " D103" , " D103" , " D101" ,
58
+ " S113" ,
59
+ " DTZ005" ,
60
+ " N805" ,
61
+
62
+ # Rules suggested to be ignored when using ruff format
63
+ " COM812" , " D206" , " E111" , " E114" , " E117" , " E501" , " ISC001" , " Q000" , " Q001" , " Q002" , " Q003" , " W191" ,
64
+ ]
65
+
66
+ [tool .ruff .lint .isort ]
67
+ order-by-type = false
68
+ case-sensitive = true
69
+ combine-as-imports = true
0 commit comments