diff --git a/.editorconfig b/.editorconfig index 47a6e43..f64592a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,4 +6,4 @@ indent_size = 4 [{CMakeLists.txt, *.cmake}] indent_style = space -indent_size = 4 \ No newline at end of file +indent_size = 4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4b7d480 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/DDS/DDSFile.py b/src/DDS/DDSFile.py index 62b82dd..4592074 100644 --- a/src/DDS/DDSFile.py +++ b/src/DDS/DDSFile.py @@ -217,4 +217,4 @@ class DDSFile: return texture def tr(self, str): - return QCoreApplication.translate("DDSFile", str) \ No newline at end of file + return QCoreApplication.translate("DDSFile", str) diff --git a/src/DDS/glstuff.py b/src/DDS/glstuff.py index 097b7e5..314d48f 100644 --- a/src/DDS/glstuff.py +++ b/src/DDS/glstuff.py @@ -202,4 +202,4 @@ class UncompressedGLTextureFormat(GLTextureFormat): if converter: self.converter = converter else: - self.converter = lambda x: x \ No newline at end of file + self.converter = lambda x: x