pre-commit run fix-encoding-pragma --all-files

This commit is contained in:
Anthony Sottile 2019-06-02 15:30:53 -07:00 committed by Bruno Oliveira
parent 99057555e1
commit 5034399d7a
188 changed files with 0 additions and 188 deletions

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
if __name__ == "__main__":

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# 10000 iterations, just for relative comparison
# 2.7.5 3.3.2
# FilesCompleter 75.1109 69.2116

View File

@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
for i in range(1000):
exec("def test_func_%d(): pass" % i)

View File

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

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# flasky extensions. flasky pygments style based on tango style
from pygments.style import Style
from pygments.token import Comment

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# pytest documentation build configuration file, created by
# sphinx-quickstart on Fri Oct 8 17:54:28 2010.

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
collect_ignore = ["conf.py"]

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import _pytest._code
import pytest
from pytest import raises

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
hello = "world"

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import py
failure_demo = py.path.local(__file__).dirpath("failure_demo.py")

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
def setup_module(module):
module.TestStateFullThing.classcount = 0

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
collect_ignore = ["nonpython"]

View File

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

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
#

View File

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

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
#

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
def test_something(setup):
assert setup.timecostly == 1

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
module containing a parametrized tests testing cross-python
serialization via the pickle module.

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# content of conftest.py
import pytest

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
def test_exception_syntax():
try:
0 / 0

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# run this with $ pytest --collect-only test_collectonly.py
#

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import pytest
xfail = pytest.mark.xfail

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Invoke development tasks.
"""

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from setuptools import setup
# TODO: if py gets upgrade to >=1.6,

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
__all__ = ["__version__"]
try:

View File

@ -1,4 +1,3 @@
# -*- 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,4 +1,3 @@
# -*- coding: utf-8 -*-
""" python inspection/code generation API """
from __future__ import absolute_import
from __future__ import division

View File

@ -1,4 +1,3 @@
# -*- 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,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,3 @@
# -*- 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,4 +1,3 @@
# -*- coding: utf-8 -*-
import atexit
import errno
import fnmatch

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# flake8: noqa
# disable flake check on this file because some constructs are strange
# or redundant on purpose and can't be disable on a line-by-line basis

View File

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

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Reproduces issue #3774"""
from unittest import mock

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More