Skip to content

Commit

Permalink
Add a editorconfig file
Browse files Browse the repository at this point in the history
To quote editorconfig.org:

"EditorConfig helps maintain consistent coding styles for multiple
developers working on the same project across various editors and IDEs.
The EditorConfig project consists of a file format for defining coding
styles and a collection of text editor plugins that enable editors to
read the file format and adhere to defined styles. EditorConfig files
are easily readable and they work nicely with version control systems."

This commit adds a very basic editorconfig file to catch the most common
cases.
  • Loading branch information
imphil authored and olofk committed Jan 30, 2021
1 parent fe99008 commit 1bb9aec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Editorconfig, a commonly used configuration file for editors.
# See https://editorconfig.org/ for details and syntax.
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

0 comments on commit 1bb9aec

Please sign in to comment.