File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -99,18 +99,35 @@ test = [
99
99
100
100
101
101
[tool .ruff ]
102
+ preview = true
103
+ force-exclude = true
104
+
102
105
[tool .ruff .lint ]
103
106
extend-select = [" ALL" ]
104
107
ignore = [
108
+ " CPY" , # Missing copyright notice at top of file (NOTE revisit when autofixable)
109
+ " COM812" , # Conflicts with formatter
110
+ " D105" , # Missing docstring in magic method
111
+ " D107" , # Missing docstring in __init__
105
112
" D203" , # 1 blank line required before class docstring
106
113
" D213" , # Multi-line docstring summary should start at the second line
114
+ " FBT" , # flake8-boolean-trap
115
+ " FIX" , # flake8-fixme
107
116
" ISC001" , # Conflicts with formatter
108
117
]
109
118
119
+ [tool .ruff .lint .flake8-import-conventions ]
120
+ banned-from = [" array_api_typing" ]
121
+
122
+ [tool .ruff .lint .flake8-import-conventions .extend-aliases ]
123
+ array_api_typing = " xpt"
124
+
110
125
[tool .ruff .lint .isort ]
111
126
combine-as-imports = true
112
127
extra-standard-library = [" typing_extensions" ]
113
128
known-local-folder = [" array_api_typing" ]
114
129
115
130
[tool .ruff .format ]
116
131
docstring-code-format = true
132
+ line-ending = " lf"
133
+ preview = true
You can’t perform that action at this time.
0 commit comments