@@ -28,17 +28,42 @@ dependencies = [
28
28
requires = [" flit_core >=3.4,<4" ]
29
29
build-backend = " flit_core.buildapi"
30
30
31
- [tool .black ]
32
- line-length = 99
33
-
34
- [tool .isort ]
35
- line_length = 99
36
- multi_line_output = 3
37
- include_trailing_comma = true
38
- force_grid_wrap = 0
39
- use_parentheses = true
40
- ensure_newline_before_comments = true
41
- indent = " \t "
42
-
43
31
[tool .bench .frappe-dependencies ]
44
32
frappe = " >=16.0.0-dev,<17.0.0"
33
+
34
+ [tool .ruff ]
35
+ line-length = 110
36
+ target-version = " py310"
37
+
38
+ [tool .ruff .lint ]
39
+ select = [
40
+ " F" ,
41
+ " E" ,
42
+ " W" ,
43
+ " I" ,
44
+ " UP" ,
45
+ " B" ,
46
+ " RUF" ,
47
+ ]
48
+ ignore = [
49
+ " B017" , # assertRaises(Exception) - should be more specific
50
+ " B018" , # useless expression, not assigned to anything
51
+ " B023" , # function doesn't bind loop variable - will have last iteration's value
52
+ " B904" , # raise inside except without from
53
+ " E101" , # indentation contains mixed spaces and tabs
54
+ " E402" , # module level import not at top of file
55
+ " E501" , # line too long
56
+ " E741" , # ambiguous variable name
57
+ " F401" , # "unused" imports
58
+ " F403" , # can't detect undefined names from * import
59
+ " F405" , # can't detect undefined names from * import
60
+ " F722" , # syntax error in forward type annotation
61
+ " W191" , # indentation contains tabs
62
+ " RUF001" , # string contains ambiguous unicode character
63
+ ]
64
+ typing-modules = [" frappe.types.DF" ]
65
+
66
+ [tool .ruff .format ]
67
+ quote-style = " double"
68
+ indent-style = " tab"
69
+ docstring-code-format = true
0 commit comments