diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a90519e68..d06d93c35 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,8 +5,12 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + - id: check-case-conflict + - id: check-json - id: check-yaml - id: check-toml + - id: check-merge-conflict + - id: fix-encoding-pragma - repo: https://github.com/OctoPrint/codemods rev: main hooks: diff --git a/setup.py b/setup.py index 7ebc0450d..fcbc9b578 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python2 -# coding=utf-8 +# -*- coding: utf-8 -*- import os import sys diff --git a/src/octoprint/cli/user.py b/src/octoprint/cli/user.py index ed70f1424..e75c397c1 100644 --- a/src/octoprint/cli/user.py +++ b/src/octoprint/cli/user.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License" diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index ffcf9f0dc..63aaed569 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License" diff --git a/src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py b/src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py index 3163cadb9..ceeed7be9 100644 --- a/src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py +++ b/src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License" diff --git a/src/octoprint/server/util/flask.py b/src/octoprint/server/util/flask.py index f2a4c4010..90fa28138 100644 --- a/src/octoprint/server/util/flask.py +++ b/src/octoprint/server/util/flask.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from flask import make_response __author__ = "Gina Häußge " diff --git a/tests/server/api/__init__.py b/tests/server/api/__init__.py index b8fcc3191..c1260aadb 100644 --- a/tests/server/api/__init__.py +++ b/tests/server/api/__init__.py @@ -1,4 +1,4 @@ -# coding=utf-8 +# -*- coding: utf-8 -*- """ Unit tests for ``octoprint.server.api``. """ diff --git a/tests/server/api/test_system.py b/tests/server/api/test_system.py index 0a7b0c687..f0de5521c 100644 --- a/tests/server/api/test_system.py +++ b/tests/server/api/test_system.py @@ -1,4 +1,4 @@ -# coding=utf-8 +# -*- coding: utf-8 -*- """ Unit tests for ``octoprint.server.api`` system. """