Skip to content

Commit

Permalink
FIX: add .editorconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 5, 2024
1 parent c331ff1 commit dc07775
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"version": "0.2",
"ignorePaths": [
"**/.cspell.json",
".editorconfig",
".gitignore",
".gitpod.*",
".pre-commit-config.yaml",
Expand Down
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
indent_size = unset

[*.{py,toml}]
indent_size = 4

[LICENSE]
indent_size = unset

[setup.cfg]
indent_size = 4
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ repos:
rev: 2.7.3
hooks:
- id: editorconfig-checker
exclude: >
name: editorconfig
alias: ec
exclude: >-
(?x)^(
.*\.py
)$
Expand Down

0 comments on commit dc07775

Please sign in to comment.