@@ -12,7 +12,7 @@ scripts = { nixos-anywhere-pxe = "nixos_anywhere_pxe:main"}
12
12
addopts = " --cov . --cov-report term --cov-fail-under=100 --no-cov-on-fail"
13
13
14
14
[tool .mypy ]
15
- python_version = " 3.10 "
15
+ python_version = " 3.12 "
16
16
warn_redundant_casts = true
17
17
disallow_untyped_calls = true
18
18
disallow_untyped_defs = true
@@ -29,8 +29,51 @@ ignore_missing_imports = true
29
29
[tool .ruff ]
30
30
line-length = 88
31
31
32
- select = [" E" , " F" , " I" ]
33
- ignore = [ " E501" ]
32
+ lint.select = [" ALL" ]
33
+ lint.ignore = [
34
+ # pydocstyle
35
+ " D" ,
36
+ # todo comments
37
+ " TD" ,
38
+ # fixmes
39
+ " FIX" ,
40
+ # line length
41
+ " E501" ,
42
+ " T201" , # `print` found
43
+ " PLR2004" , # Magic value used in comparison
44
+ # Too many statements
45
+ " PLR0915" ,
46
+ # Too many arguments in function definition
47
+ " PLR0913" ,
48
+ " PLR0912" , # Too many branches
49
+ # $X is too complex
50
+ " C901" ,
51
+ # Unused function argument
52
+ " ARG001" ,
53
+
54
+ # Dynamically typed expressions (typing.Any)
55
+ " ANN401" ,
56
+ # Trailing comma missing
57
+ " COM812" ,
58
+ # Unnecessary `dict` call (rewrite as a literal)
59
+ " C408" ,
60
+ # Found commented-out code
61
+ " ERA001" ,
62
+ # Boolean-typed positional argument in function definition
63
+ " FBT001" ,
64
+ # Logging statement uses f-string
65
+ " G004" ,
66
+ # disabled on ruff's recommendation as causes problems with the formatter
67
+ " ISC001" ,
68
+ # Use of `assert` detected
69
+ " S101" ,
70
+ # `subprocess` call: check for execution of untrusted input
71
+ " S603" ,
72
+ # Starting a process with a partial executable path
73
+ " S607" ,
74
+ # Boolean default positional argument in function definition
75
+ " FBT002" ,
76
+ ]
34
77
35
78
[tool .black ]
36
79
line-length = 88
0 commit comments