-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Create .editorconfig #62736 #62900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create .editorconfig #62736 #62900
Changes from all commits
52e07b5
b2f18ef
9655a9a
6ef5696
5a72c79
8056bb8
63f8443
bb9b0ab
8a7918f
b89a087
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
|
|
||
| root = true | ||
|
|
||
| [*] | ||
| charset = UTF-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| spelling_language = en-us | ||
|
|
||
| [*.py] | ||
| max_line_length = 88 | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| [*.pyx] | ||
| max_line_length = 88 | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
Comment on lines
+11
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Merge these 2 instructions |
||
|
|
||
|
|
||
| [*.c] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. include |
||
| max_line_length = 80 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's best to don't add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, should I follow this only for this .c or every other file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no intent in adding this file to the repository. But FYI, it depends mainly on linting settings. For Python and Pyrex this setting is enforced, so it would be beneficial. I don't recall how it's defined for C, but a textwidth of 80 seems small. |
||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [meson.build] | ||
| max_line_length = 80 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| [*.{yml,yaml}] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some files in the codebase has an indent size of 2, others has of 4. Keep it in 2 for now. |
||
|
|
||
| [*.json] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
|
|
||
| [*.sh] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| [*.rst] | ||
| indent_style = space | ||
| indent_size = 4 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This instruction is a little bit invasive to be applied for all files