[pitivi] Enabled fix-encoding-pragma auto-fix pre-commit hook
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Enabled fix-encoding-pragma auto-fix pre-commit hook
- Date: Mon, 11 Nov 2019 22:05:18 +0000 (UTC)
commit bbe1907d6f522efd4769f4efacc440f9f426dbef
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Oct 27 05:55:59 2019 +0100
Enabled fix-encoding-pragma auto-fix pre-commit hook
.pre-commit-config.yaml | 11 +++++++----
build/flatpak/pitivi-flatpak | 1 +
getenvvar.py | 1 +
plugins/console/consolebuffer.py | 1 +
plugins/console/utils.py | 1 +
tests/__init__.py | 1 +
tests/ptv_testsuite.py | 1 +
tests/test_log.py | 1 +
8 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f1aaa856..e53fedcd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,16 +1,19 @@
repos:
+- repo: https://github.com/pre-commit/pre-commit.git
+ rev: v1.18.3
+ hooks:
+ - id: validate_manifest
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.3.0
hooks:
+ # Hooks able to fix small things.
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ".svg$|.po$"
+ - id: fix-encoding-pragma
+ # Hooks doing lightweight Python checks.
- id: check-docstring-first
- id: debug-statements
-- repo: https://github.com/pre-commit/pre-commit.git
- rev: v1.18.3
- hooks:
- - id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports.git
rev: v1.7.0
hooks:
diff --git a/build/flatpak/pitivi-flatpak b/build/flatpak/pitivi-flatpak
index 98476f41..5d38b5a0 100755
--- a/build/flatpak/pitivi-flatpak
+++ b/build/flatpak/pitivi-flatpak
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
# Pitivi video editor
# Copyright (c) 2016, Thibault Saunier <tsaunier gnome org>
#
diff --git a/getenvvar.py b/getenvvar.py
index 101856c7..a701aad0 100755
--- a/getenvvar.py
+++ b/getenvvar.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
"""Print the content of an environment variable on stdout."""
import os
import sys
diff --git a/plugins/console/consolebuffer.py b/plugins/console/consolebuffer.py
index d8786088..98bb4a4b 100644
--- a/plugins/console/consolebuffer.py
+++ b/plugins/console/consolebuffer.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
# -*- coding: utf-8 -*-
# Pitivi Developer Console
diff --git a/plugins/console/utils.py b/plugins/console/utils.py
index cb8ca41d..1c1372fb 100644
--- a/plugins/console/utils.py
+++ b/plugins/console/utils.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
# -*- coding: utf-8 -*-
# Pitivi Developer Console
diff --git a/tests/__init__.py b/tests/__init__.py
index 2cfe59c2..74b0e1e9 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
"""Pitivi unit tests."""
import os
import sys
diff --git a/tests/ptv_testsuite.py b/tests/ptv_testsuite.py
index 94737498..4b1fc26a 100644
--- a/tests/ptv_testsuite.py
+++ b/tests/ptv_testsuite.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# Pitivi video editor
# Copyright (c) 2017, Thibault Saunier <tsaunier gnome org>
#
diff --git a/tests/test_log.py b/tests/test_log.py
index 31a77146..a28a7707 100644
--- a/tests/test_log.py
+++ b/tests/test_log.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# -*- Mode: Python; test-case-name: test_log -*-
# vi:si:et:sw=4:sts=4:ts=4
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]