pre-commit: add hook to trim trailing whitespace (#8205)

This commit is contained in:
John Bampton 2024-05-28 17:01:30 +10:00 committed by GitHub
parent 40c5d35377
commit 28e8e2d009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
157 changed files with 753 additions and 754 deletions

View File

@ -58,7 +58,9 @@ repos:
- id: forbid-submodules
- id: mixed-line-ending
exclude: \.(cs|xml)$
# - id: trailing-whitespace
- id: trailing-whitespace
files: \.(in|java|md|py|rb|sh|vue|yaml|yml)$
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:

View File

@ -228,4 +228,3 @@ if __name__ == "__main__":
printMsg("Setup BareMetal PXE server successfully")
printMsg("TFTP root directory is: %s\n"%tftpRootDir)
sys.exit(0)

View File

@ -264,4 +264,3 @@ for example:
if __name__ == "__main__":
o = DBDeployer()
o.run()

View File

@ -98,4 +98,3 @@ The included VagrantFile will give you:
- IP: 192.168.22.10
- Username: root
- Password: password