diff --git a/.cspell.json b/.cspell.json index 8e6b27d..5e270ee 100644 --- a/.cspell.json +++ b/.cspell.json @@ -2,6 +2,7 @@ "version": "0.2", "ignorePaths": [ "**/.cspell.json", + ".editorconfig", ".gitignore", ".gitpod.*", ".pre-commit-config.yaml", diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b70605c --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e03b3bb..8204f91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,7 +77,9 @@ repos: rev: 2.7.3 hooks: - id: editorconfig-checker - exclude: > + name: editorconfig + alias: ec + exclude: >- (?x)^( .*\.py )$