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 -*-
__all__ = ["__version__"]
try:

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""allow bash-completion for argparse with argcomplete if installed
needs argcomplete>=0.5.6 for python 3.2/3.3 (older versions fail
to find the magic string, so _ARGCOMPLETE env. var is never set, and

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" python inspection/code generation API """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# copied from python-2.7.3's traceback.py
# CHANGES:
# - some_str is replaced, trying to create unicode strings

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pprint
from six.moves import reprlib

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
support for presenting detailed information in failing assertions.
"""

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Rewrite assertion AST to produce nice error messages"""
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Utilities for truncating assertion output.

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Utilities for assertion debugging"""
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
merged implementation of the cache provider

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
per-test stdout/stderr capturing mechanism.

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
python version compatibility code
"""

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" command line options, ini-file and conftest.py processing. """
from __future__ import absolute_import
from __future__ import division

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
class UsageError(Exception):
""" error in pytest usage or invocation"""

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" interactive debugging with PDB, the Python Debugger. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
This module contains deprecation messages and bits of code used elsewhere in the codebase
that is planned to be removed in the next pytest release.

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" discover and run doctests in modules and test files."""
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Provides a function to report all internal modules for using freezing tools
pytest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" version info, help messages, tracing configuration. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" hook specifications for pytest plugins, invoked from main.py and builtin plugins. """
from pluggy import HookspecMarker

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
report test results in JUnit-XML format,
for use with Jenkins and build integration servers.

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Access and control log capturing. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" core implementation of testing process: init, session, runtest loop. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" generic mechanism for marking and selecting python functions. """
from __future__ import absolute_import
from __future__ import division

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
this is a place where we put datastructures used by legacy apis
we hope ot remove

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import inspect
import warnings
from collections import namedtuple

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" monkeypatching and mocking functionality. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" run test suites written for nose. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
exception classes and constants handling test outcomes
as well as functions creating them

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" submit failure or test session information to a pastebin service. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import atexit
import errno
import fnmatch

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""(disabled by default) support for testing pytest and pytest plugins."""
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Python test discovery, setup and run of test functions. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import math

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" recording warnings during test function execution. """
from __future__ import absolute_import
from __future__ import division

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" log machine-parseable test session result information in a plain
text file.
"""

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" basic collect and runtest protocol implementations """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: utf-8 -*-
""" support for skip/xfail functions and markers. """
from __future__ import absolute_import
from __future__ import division

View File

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

View File

@@ -1,4 +1,4 @@
# encoding: utf-8
# -*- coding: utf-8 -*-
""" terminal reporting of the full testing process.
This is a good source for looking at the various reporting hooks.

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" support for providing temporary directories to test functions. """
from __future__ import absolute_import
from __future__ import division

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" discovery and running of std-library "unittest" style tests. """
from __future__ import absolute_import
from __future__ import division

View File

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

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
"""
pytest: unit and functional testing with Python.