Skip to content

Commit

Permalink
chore: Add EditorConfig (#20)
Browse files Browse the repository at this point in the history
# Pull Request

## Description

This change introduces an `.editorconfig` file to the project, establishing consistent coding styles across different editors and IDEs. The configuration includes:

- UTF-8 character encoding
- LF line endings
- 2-space indentation for most files
- Insertion of a final newline
- Trimming of trailing whitespace

Specific rules are set for Python files (4-space indentation) and Markdown files (unset indentation size).

This addition will help maintain code consistency and improve collaboration among developers using different editing environments.

fixes #2
  • Loading branch information
JackPlowman authored Sep 27, 2024
1 parent 03b0fb9 commit aa1ea11
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_size = 4

[*.md]
indent_size = unset

0 comments on commit aa1ea11

Please sign in to comment.