Skip to content

Commit

Permalink
Format trailing-whitespaces and end-of-file with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed May 28, 2024
1 parent 0731103 commit 9743cd0
Show file tree
Hide file tree
Showing 184 changed files with 2,762 additions and 2,924 deletions.
7 changes: 3 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
root = true

[*]
# TODO: Activate and run in a different PR. Lots of files affected
# trim_trailing_whitespace = true
# insert_final_newline = true
# end_of_line = crlf
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = crlf
indent_style = space
indent_size = 4
max_line_length = 120 # Same as .clang-format
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# TODO: Activate and run in a different PR. Lots of files affected
# - id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
# - id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=crlf]
# Vendored
exclude: ^com/win32comext/mapi/src/mapi_headers/.*$
- id: check-case-conflict
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
Expand Down Expand Up @@ -38,5 +35,8 @@ repos:
- id: black
verbose: true

# Vendored
exclude: ^(com/win32comext/mapi/src/mapi_headers/|Pythonwin/Scintilla/).*$

ci:
autoupdate_schedule: quarterly
Loading

0 comments on commit 9743cd0

Please sign in to comment.