File tree 5 files changed +16
-11
lines changed
5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- encoding: utf-8 -*-
3
- from __future__ import absolute_import , print_function
3
+ from __future__ import absolute_import
4
+ from __future__ import print_function
4
5
5
6
import io
6
- from itertools import chain
7
7
import re
8
+ from distutils .command .build import build
8
9
from glob import glob
10
+ from itertools import chain
9
11
from os .path import basename
10
12
from os .path import dirname
11
13
from os .path import join
12
14
from os .path import splitext
13
- from distutils .command .build import build
14
15
15
16
from setuptools import Command
16
17
from setuptools import find_packages
17
18
from setuptools import setup
18
19
from setuptools .command .develop import develop
19
- from setuptools .command .install_lib import install_lib
20
20
from setuptools .command .easy_install import easy_install
21
+ from setuptools .command .install_lib import install_lib
21
22
22
23
23
24
def read (* names , ** kwargs ):
Original file line number Diff line number Diff line change 1
1
"""Coverage controllers for use by pytest-cov and nose-cov."""
2
-
3
2
import contextlib
4
3
import copy
5
4
import os
10
9
import coverage
11
10
from coverage .data import CoverageData
12
11
12
+ from .compat import StringIO
13
+ from .compat import workerinput
14
+ from .compat import workeroutput
13
15
from .embed import cleanup
14
- from .compat import StringIO , workeroutput , workerinput
15
16
16
17
17
18
class _NullFile (object ):
Original file line number Diff line number Diff line change 1
1
"""Coverage plugin for pytest."""
2
2
import argparse
3
- import coverage
4
3
import os
5
- import pytest
6
4
import warnings
5
+
6
+ import coverage
7
+ import pytest
7
8
from coverage .misc import CoverageException
8
9
9
10
from . import compat
Original file line number Diff line number Diff line change 18
18
from process_tests import wait_for_strings
19
19
from six import exec_
20
20
21
+ import pytest_cov .plugin
22
+ from pytest_cov import compat
23
+
21
24
try :
22
25
from StringIO import StringIO
23
26
except ImportError :
24
27
from io import StringIO
25
28
26
- import pytest_cov .plugin
27
- from pytest_cov import compat
28
-
29
29
coverage , platform # required for skipif mark on test_cov_min_from_coveragerc
30
30
31
31
max_worker_restart_0 = "--max-" + compat .worker + "-restart=0"
Original file line number Diff line number Diff line change @@ -67,9 +67,11 @@ deps =
67
67
flake8
68
68
readme-renderer
69
69
pygments
70
+ isort
70
71
skip_install = true
71
72
usedevelop = false
72
73
commands =
73
74
python setup.py check --strict --metadata --restructuredtext
74
75
check-manifest {toxinidir}
75
76
flake8 src tests setup.py
77
+ isort --check-only --diff --recursive src tests setup.py
You can’t perform that action at this time.
0 commit comments