diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000..1e2a124 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,6 @@ +[settings] +line_length=90 +default_section=THIRDPARTY +no_lines_before=LOCALFOLDER +force_single_line=True +sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER diff --git a/pytest_sphinx.py b/pytest_sphinx.py index 54c8a56..364b0ce 100644 --- a/pytest_sphinx.py +++ b/pytest_sphinx.py @@ -9,17 +9,17 @@ import doctest import enum -from pathlib import Path import re import sys import textwrap import traceback +from pathlib import Path import _pytest.doctest import pytest +from _pytest.doctest import DoctestItem from _pytest.doctest import _is_mocked from _pytest.doctest import _patch_unwrap_mock_aware -from _pytest.doctest import DoctestItem from _pytest.pathlib import import_path diff --git a/tests/test_options.py b/tests/test_options.py index 1744679..26de13f 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -2,6 +2,7 @@ import textwrap import pytest + from pytest_sphinx import _split_into_body_and_options diff --git a/tests/test_text_files.py b/tests/test_text_files.py index 31ce5e4..b1cd9b4 100644 --- a/tests/test_text_files.py +++ b/tests/test_text_files.py @@ -1,4 +1,5 @@ import _pytest.doctest + import pytest_sphinx