use pre-commit to force trailing ending line & remove trailing whitespaces at end of lines

This commit is contained in:
Cuong-Tran 2025-03-24 13:33:03 +07:00
parent 55b9aeca11
commit cca961f6c2
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
126 changed files with 135 additions and 139 deletions

6
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the latest stable version
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace