Use fix-encoding-pragma pre-commit hook

This commit is contained in:
Anthony Sottile
2019-05-14 15:56:31 -07:00
parent 7573747cda
commit dc75b6af47
188 changed files with 206 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
# encoding: utf-8
# -*- coding: utf-8 -*-
import doctest
import operator
import sys

View File

@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-
import os
import sys
import textwrap
@@ -119,7 +119,7 @@ class TestModule(object):
"""
testdir.makepyfile(
u"""
# coding: utf-8
# -*- coding: utf-8 -*-
raise ImportError(u'Something bad happened ☺')
"""
)
@@ -1244,7 +1244,7 @@ def test_syntax_error_with_non_ascii_chars(testdir):
"""
testdir.makepyfile(
u"""
# coding: utf-8
# -*- coding: utf-8 -*-
"""

View File

@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-
import sys
import textwrap

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pytest
from _pytest import python
from _pytest import runner

View File

@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-
import re
import sys
import textwrap

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import sys
import six

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pytest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
def test_show_fixtures_and_test(testdir):
""" Verifies that fixtures are not executed. """
p = testdir.makepyfile(

View File

@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-
def test_no_items_should_not_show_output(testdir):