add .editorconfig & .pre-commit-config.yaml

This commit is contained in:
Aminda Suomalainen 2023-09-01 16:08:37 +03:00
parent d59ddc290f
commit 1a2e8ff659
No known key found for this signature in database
2 changed files with 33 additions and 0 deletions

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
# See https://editorconfig.org for more information
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
[*.{markdown,md}]
trim_trailing_whitespace = false

22
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,22 @@
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-yaml
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude_types: [markdown]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.2"
hooks:
- id: editorconfig-checker
alias: ec