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,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Reproduces issue #3774"""
try:

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_init():
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_foo():
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def pytest_ignore_collect(path):
return False

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test():
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test():
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
class pytest_something(object):
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_foo():
pass

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
def pytest_configure(config):
import pytest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from dataclasses import dataclass
from dataclasses import field

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from dataclasses import dataclass
from dataclasses import field

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from dataclasses import dataclass
from dataclasses import field

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from dataclasses import dataclass
from dataclasses import field

View File

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

View File

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

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test():
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_1(arg1):
pass

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_2(arg2):
pass

View File

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

View File

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

View File

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

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_spam(spam):
assert spam == "spamspam"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_hello():
pass

View File

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

View File

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

View File

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

View File

@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
def test_x():
pass

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Skipping an entire subclass with unittest.skip() should *not* call setUp from a base class."""
import unittest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Skipping an entire subclass with unittest.skip() should *not* call setUpClass from a base class."""
import unittest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""setUpModule is always called, even if all tests in the module are skipped"""
import unittest

View File

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