Add pre-commit hook.

This commit is contained in:
Mikaël Capelle
2025-05-29 11:21:43 +02:00
parent e6c1b372e2
commit da1e11fb41
4 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ indent_size = 4
[{CMakeLists.txt, *.cmake}]
indent_style = space
indent_size = 4
indent_size = 4
+15
View File
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-case-conflict
ci:
autofix_commit_msg: "[pre-commit.ci] Auto fixes from pre-commit.com hooks."
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] Pre-commit autoupdate."
autoupdate_schedule: quarterly
submodules: false
+1 -1
View File
@@ -217,4 +217,4 @@ class DDSFile:
return texture
def tr(self, str):
return QCoreApplication.translate("DDSFile", str)
return QCoreApplication.translate("DDSFile", str)
+1 -1
View File
@@ -202,4 +202,4 @@ class UncompressedGLTextureFormat(GLTextureFormat):
if converter:
self.converter = converter
else:
self.converter = lambda x: x
self.converter = lambda x: x