Skip to content

Commit cca7c85

Browse files
authored
DEV: add .editorconfig (scipy#22818)
1 parent 72c4dfe commit cca7c85

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
root = true
2+
3+
[*.{c,cxx,h,hpp}]
4+
# https://numpy.org/neps/nep-0045-c_style_guide.html
5+
indent_size = 4
6+
indent_style = space
7+
max_line_length = 88
8+
trim_trailing_whitespace = true
9+
10+
[*.{md,py,pyi,pxd}]
11+
# https://peps.python.org/pep-0008/
12+
charset = utf-8
13+
end_of_line = lf
14+
indent_size = 4
15+
indent_style = space
16+
insert_final_newline = true
17+
trim_trailing_whitespace = true
18+
19+
[*.py]
20+
# Keep in sync with `tools/lint.toml`
21+
# https://docs.astral.sh/ruff/settings/#line-length
22+
max_line_length = 88
23+
24+
[*.pyi]
25+
# https://typing.readthedocs.io/en/latest/guides/writing_stubs.html#style-guide
26+
max_line_length = 130
27+
28+
[*.md]
29+
max_line_length = 80

0 commit comments

Comments
 (0)