diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae00f49d..10f52fa0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ - repo: https://github.com/pre-commit/pre-commit-hooks.git - sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 + sha: 5edf945ca57abe10a8f090f18e575eabb6a9585a hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,13 +11,14 @@ - id: name-tests-test - id: requirements-txt-fixer - id: flake8 + - id: fix-encoding-pragma - repo: https://github.com/pre-commit/pre-commit.git - sha: 8dba3281d5051060755459dcf88e28fc26c27526 + sha: 75aaadd4c455043b0fff3cc22eb480f6a120caaf hooks: - id: validate_config - id: validate_manifest - repo: https://github.com/asottile/reorder_python_imports.git - sha: 3d86483455ab5bd06cc1069fdd5ac57be5463f10 + sha: 8b583ac1beb0dd0f14c4bceb0a53bb1023cb3dd7 hooks: - id: reorder-python-imports language_version: python2.7 diff --git a/pre_commit/__main__.py b/pre_commit/__main__.py index fc424d82..9f1574b0 100644 --- a/pre_commit/__main__.py +++ b/pre_commit/__main__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from pre_commit.main import main diff --git a/pre_commit/clientlib/validate_base.py b/pre_commit/clientlib/validate_base.py index 3d08a6c3..b0ae6d60 100644 --- a/pre_commit/clientlib/validate_base.py +++ b/pre_commit/clientlib/validate_base.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/clientlib/validate_config.py b/pre_commit/clientlib/validate_config.py index dcc4ebd7..502d1838 100644 --- a/pre_commit/clientlib/validate_config.py +++ b/pre_commit/clientlib/validate_config.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals from pre_commit.clientlib.validate_base import get_run_function diff --git a/pre_commit/clientlib/validate_manifest.py b/pre_commit/clientlib/validate_manifest.py index 182a5e1c..d0ff785a 100644 --- a/pre_commit/clientlib/validate_manifest.py +++ b/pre_commit/clientlib/validate_manifest.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals from pre_commit.clientlib.validate_base import get_run_function diff --git a/pre_commit/color.py b/pre_commit/color.py index a787821c..977d2ae8 100644 --- a/pre_commit/color.py +++ b/pre_commit/color.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys diff --git a/pre_commit/commands/autoupdate.py b/pre_commit/commands/autoupdate.py index a446a172..3b7465a9 100644 --- a/pre_commit/commands/autoupdate.py +++ b/pre_commit/commands/autoupdate.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/commands/clean.py b/pre_commit/commands/clean.py index e0d307fb..505bb8ce 100644 --- a/pre_commit/commands/clean.py +++ b/pre_commit/commands/clean.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/commands/identify.py b/pre_commit/commands/identify.py index f1ec0ce6..f43c363d 100644 --- a/pre_commit/commands/identify.py +++ b/pre_commit/commands/identify.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from pre_commit import git from pre_commit.file_classifier.classifier import classify diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index 9ab6fc57..0756db16 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index e6b62635..b5638582 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/constants.py b/pre_commit/constants.py index b89c29f8..e743d5aa 100644 --- a/pre_commit/constants.py +++ b/pre_commit/constants.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals diff --git a/pre_commit/error_handler.py b/pre_commit/error_handler.py index 85d5602e..5c45c5f5 100644 --- a/pre_commit/error_handler.py +++ b/pre_commit/error_handler.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/errors.py b/pre_commit/errors.py index 4dedbfc2..58fd9737 100644 --- a/pre_commit/errors.py +++ b/pre_commit/errors.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/pre_commit/file_classifier/classifier.py b/pre_commit/file_classifier/classifier.py index 42481d23..907742ca 100644 --- a/pre_commit/file_classifier/classifier.py +++ b/pre_commit/file_classifier/classifier.py @@ -1,4 +1,4 @@ -# encoding: utf-8 +# -*- coding: utf-8 -*- import io import re import string diff --git a/pre_commit/file_classifier/extensions.py b/pre_commit/file_classifier/extensions.py index 098a7162..3e5af1f5 100644 --- a/pre_commit/file_classifier/extensions.py +++ b/pre_commit/file_classifier/extensions.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """List of known filename to file type mappings. The list consists of tuples of (filename regex, list of types). diff --git a/pre_commit/file_classifier/interpreters.py b/pre_commit/file_classifier/interpreters.py index 1434ac25..d44d351d 100644 --- a/pre_commit/file_classifier/interpreters.py +++ b/pre_commit/file_classifier/interpreters.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- KNOWN_INTERPRETERS = [ ('^python([23](\.[0-9]+)?)?$', ['python']), ('^(ba|da|tc|[ckz])?sh$', ['shell']), diff --git a/pre_commit/five.py b/pre_commit/five.py index 8b9a2b54..2df53cba 100644 --- a/pre_commit/five.py +++ b/pre_commit/five.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals # pylint:disable=invalid-name diff --git a/pre_commit/git.py b/pre_commit/git.py index 15393ab4..941e29e8 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import functools diff --git a/pre_commit/jsonschema_extensions.py b/pre_commit/jsonschema_extensions.py index 0314e32e..ed271e52 100644 --- a/pre_commit/jsonschema_extensions.py +++ b/pre_commit/jsonschema_extensions.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import copy diff --git a/pre_commit/languages/all.py b/pre_commit/languages/all.py index 63c1d514..f2ad2893 100644 --- a/pre_commit/languages/all.py +++ b/pre_commit/languages/all.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals from pre_commit.languages import node diff --git a/pre_commit/languages/helpers.py b/pre_commit/languages/helpers.py index b0add575..770bac6f 100644 --- a/pre_commit/languages/helpers.py +++ b/pre_commit/languages/helpers.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import pipes diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py index 99b46df7..f33b4f9a 100644 --- a/pre_commit/languages/node.py +++ b/pre_commit/languages/node.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/pre_commit/languages/pcre.py b/pre_commit/languages/pcre.py index 823e55cb..194efeb3 100644 --- a/pre_commit/languages/pcre.py +++ b/pre_commit/languages/pcre.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals from sys import platform diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index 4c463874..86306698 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py index a23df5d3..a7ac94c4 100644 --- a/pre_commit/languages/ruby.py +++ b/pre_commit/languages/ruby.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/pre_commit/languages/script.py b/pre_commit/languages/script.py index 5ba871ea..4291f43d 100644 --- a/pre_commit/languages/script.py +++ b/pre_commit/languages/script.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals from pre_commit.languages.helpers import file_args_to_stdin diff --git a/pre_commit/languages/system.py b/pre_commit/languages/system.py index 3930422b..6f9ce265 100644 --- a/pre_commit/languages/system.py +++ b/pre_commit/languages/system.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import shlex diff --git a/pre_commit/logging_handler.py b/pre_commit/logging_handler.py index 5dc2d227..fb369660 100644 --- a/pre_commit/logging_handler.py +++ b/pre_commit/logging_handler.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging diff --git a/pre_commit/main.py b/pre_commit/main.py index 132e901a..c23880cc 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import argparse diff --git a/pre_commit/make_archives.py b/pre_commit/make_archives.py index ff6d3bda..22f909ad 100644 --- a/pre_commit/make_archives.py +++ b/pre_commit/make_archives.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals diff --git a/pre_commit/manifest.py b/pre_commit/manifest.py index 0738e5d4..428fab57 100644 --- a/pre_commit/manifest.py +++ b/pre_commit/manifest.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os.path diff --git a/pre_commit/ordereddict.py b/pre_commit/ordereddict.py index 2844cb46..59a6904e 100644 --- a/pre_commit/ordereddict.py +++ b/pre_commit/ordereddict.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/pre_commit/output.py b/pre_commit/output.py index 84697ec0..d92e054c 100644 --- a/pre_commit/output.py +++ b/pre_commit/output.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os diff --git a/pre_commit/prefixed_command_runner.py b/pre_commit/prefixed_command_runner.py index 2b1212a2..a5e7466f 100644 --- a/pre_commit/prefixed_command_runner.py +++ b/pre_commit/prefixed_command_runner.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os diff --git a/pre_commit/repository.py b/pre_commit/repository.py index a0c0d01a..9ff14d7e 100644 --- a/pre_commit/repository.py +++ b/pre_commit/repository.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import io diff --git a/pre_commit/runner.py b/pre_commit/runner.py index 88028939..96f4cef4 100644 --- a/pre_commit/runner.py +++ b/pre_commit/runner.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py index a2978b99..93f40815 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/pre_commit/store.py b/pre_commit/store.py index 608472bf..4058a219 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/pre_commit/util.py b/pre_commit/util.py index 3736d2e5..f10da453 100644 --- a/pre_commit/util.py +++ b/pre_commit/util.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import contextlib diff --git a/setup.py b/setup.py index 56951354..ee83daca 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup diff --git a/testing/auto_namedtuple.py b/testing/auto_namedtuple.py index 02e08fef..89824658 100644 --- a/testing/auto_namedtuple.py +++ b/testing/auto_namedtuple.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import collections diff --git a/testing/fixtures.py b/testing/fixtures.py index 36c7400c..1f159399 100644 --- a/testing/fixtures.py +++ b/testing/fixtures.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/testing/resources/arbitrary_bytes_repo/setup.py b/testing/resources/arbitrary_bytes_repo/setup.py index bf7690c0..827d92ed 100644 --- a/testing/resources/arbitrary_bytes_repo/setup.py +++ b/testing/resources/arbitrary_bytes_repo/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup diff --git a/testing/resources/python3_hooks_repo/python3_hook/main.py b/testing/resources/python3_hooks_repo/python3_hook/main.py index ceeca0c4..18910019 100644 --- a/testing/resources/python3_hooks_repo/python3_hook/main.py +++ b/testing/resources/python3_hooks_repo/python3_hook/main.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function import sys diff --git a/testing/resources/python3_hooks_repo/setup.py b/testing/resources/python3_hooks_repo/setup.py index bf7690c0..827d92ed 100644 --- a/testing/resources/python3_hooks_repo/setup.py +++ b/testing/resources/python3_hooks_repo/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup diff --git a/testing/resources/python_hooks_repo/foo/main.py b/testing/resources/python_hooks_repo/foo/main.py index 78c2c0f7..d6e087b5 100644 --- a/testing/resources/python_hooks_repo/foo/main.py +++ b/testing/resources/python_hooks_repo/foo/main.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function import sys diff --git a/testing/resources/python_hooks_repo/setup.py b/testing/resources/python_hooks_repo/setup.py index 556dd8f5..a5773f9a 100644 --- a/testing/resources/python_hooks_repo/setup.py +++ b/testing/resources/python_hooks_repo/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup diff --git a/testing/util.py b/testing/util.py index 40ee389b..865cb778 100644 --- a/testing/util.py +++ b/testing/util.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os diff --git a/tests/clientlib/validate_base_test.py b/tests/clientlib/validate_base_test.py index 5c44ab51..b6123822 100644 --- a/tests/clientlib/validate_base_test.py +++ b/tests/clientlib/validate_base_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest diff --git a/tests/clientlib/validate_config_test.py b/tests/clientlib/validate_config_test.py index 5631adbc..81fa7820 100644 --- a/tests/clientlib/validate_config_test.py +++ b/tests/clientlib/validate_config_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import jsonschema diff --git a/tests/clientlib/validate_manifest_test.py b/tests/clientlib/validate_manifest_test.py index 4e51ade9..607c9b78 100644 --- a/tests/clientlib/validate_manifest_test.py +++ b/tests/clientlib/validate_manifest_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest diff --git a/tests/color_test.py b/tests/color_test.py index 500a9bbc..280377b8 100644 --- a/tests/color_test.py +++ b/tests/color_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys diff --git a/tests/commands/autoupdate_test.py b/tests/commands/autoupdate_test.py index bd8fbe80..0b9349d7 100644 --- a/tests/commands/autoupdate_test.py +++ b/tests/commands/autoupdate_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import shutil diff --git a/tests/commands/clean_test.py b/tests/commands/clean_test.py index bdbdc998..ee08fb73 100644 --- a/tests/commands/clean_test.py +++ b/tests/commands/clean_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os.path diff --git a/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py index 9f22a788..a0d9aa6e 100644 --- a/tests/commands/install_uninstall_test.py +++ b/tests/commands/install_uninstall_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/commands/run_test.py b/tests/commands/run_test.py index 363743fb..10d3c9ef 100644 --- a/tests/commands/run_test.py +++ b/tests/commands/run_test.py @@ -1,4 +1,4 @@ -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- from __future__ import unicode_literals import functools diff --git a/tests/conftest.py b/tests/conftest.py index ea50bee6..dad94559 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/file_classifier/classifier_test.py b/tests/file_classifier/classifier_test.py index a115b482..106e52cb 100644 --- a/tests/file_classifier/classifier_test.py +++ b/tests/file_classifier/classifier_test.py @@ -1,4 +1,4 @@ -# encoding: utf-8 +# -*- coding: utf-8 -*- from __future__ import unicode_literals from contextlib import contextmanager diff --git a/tests/git_test.py b/tests/git_test.py index 1e832a76..875916fa 100644 --- a/tests/git_test.py +++ b/tests/git_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/jsonschema_extensions_test.py b/tests/jsonschema_extensions_test.py index 65948564..6a802003 100644 --- a/tests/jsonschema_extensions_test.py +++ b/tests/jsonschema_extensions_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import jsonschema.exceptions diff --git a/tests/languages/all_test.py b/tests/languages/all_test.py index 2254e388..2d36f0a2 100644 --- a/tests/languages/all_test.py +++ b/tests/languages/all_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import inspect diff --git a/tests/languages/helpers_test.py b/tests/languages/helpers_test.py index 8497ceb0..98384206 100644 --- a/tests/languages/helpers_test.py +++ b/tests/languages/helpers_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/languages/python_test.py b/tests/languages/python_test.py index 8715b690..60573a64 100644 --- a/tests/languages/python_test.py +++ b/tests/languages/python_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/languages/ruby_test.py b/tests/languages/ruby_test.py index 1eddea1d..cf0fd034 100644 --- a/tests/languages/ruby_test.py +++ b/tests/languages/ruby_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os.path diff --git a/tests/logging_handler_test.py b/tests/logging_handler_test.py index 2273de9b..142a0553 100644 --- a/tests/logging_handler_test.py +++ b/tests/logging_handler_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import mock diff --git a/tests/main_test.py b/tests/main_test.py index 537ff23c..9b84fc83 100644 --- a/tests/main_test.py +++ b/tests/main_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/make_archives_test.py b/tests/make_archives_test.py index fc267b63..cf1a7a1b 100644 --- a/tests/make_archives_test.py +++ b/tests/make_archives_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/manifest_test.py b/tests/manifest_test.py index eb3b65da..abd58f35 100644 --- a/tests/manifest_test.py +++ b/tests/manifest_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/output_test.py b/tests/output_test.py index eca7a3d7..f3a39423 100644 --- a/tests/output_test.py +++ b/tests/output_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import mock diff --git a/tests/prefixed_command_runner_test.py b/tests/prefixed_command_runner_test.py index bafcae72..f0ead97a 100644 --- a/tests/prefixed_command_runner_test.py +++ b/tests/prefixed_command_runner_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os diff --git a/tests/repository_test.py b/tests/repository_test.py index ef870b53..81e763c3 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/runner_test.py b/tests/runner_test.py index 782e8d53..48c71ed5 100644 --- a/tests/runner_test.py +++ b/tests/runner_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/staged_files_only_test.py b/tests/staged_files_only_test.py index 00f4cca9..1e7ac57a 100644 --- a/tests/staged_files_only_test.py +++ b/tests/staged_files_only_test.py @@ -1,4 +1,4 @@ -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/store_test.py b/tests/store_test.py index 21aceb64..25866b43 100644 --- a/tests/store_test.py +++ b/tests/store_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals diff --git a/tests/util_test.py b/tests/util_test.py index 1361d639..eaac7e78 100644 --- a/tests/util_test.py +++ b/tests/util_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import os