Skip to content
47 changes: 47 additions & 0 deletions .editorconfig
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
Copy link
Member

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

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge these 2 instructions



[*.c]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include .h

max_line_length = 80
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's best to don't add max_line_length

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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?

Copy link
Member

Choose a reason for hiding this comment

The 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
Copy link
Member

Choose a reason for hiding this comment

The 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
Copy link
Member

Choose a reason for hiding this comment

The 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
Loading