X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/47480ca33143b250cb33ba501f201838269173ce..43b53a034c9e3ada9295bf7f93be473b66b74f75:/.vim/bundle/black/tests/conftest.py diff --git a/.vim/bundle/black/tests/conftest.py b/.vim/bundle/black/tests/conftest.py deleted file mode 100644 index 1a0dd747..00000000 --- a/.vim/bundle/black/tests/conftest.py +++ /dev/null @@ -1,28 +0,0 @@ -import pytest - -pytest_plugins = ["tests.optional"] - -PRINT_FULL_TREE: bool = False -PRINT_TREE_DIFF: bool = True - - -def pytest_addoption(parser: pytest.Parser) -> None: - parser.addoption( - "--print-full-tree", - action="store_true", - default=False, - help="print full syntax trees on failed tests", - ) - parser.addoption( - "--print-tree-diff", - action="store_true", - default=True, - help="print diff of syntax trees on failed tests", - ) - - -def pytest_configure(config: pytest.Config) -> None: - global PRINT_FULL_TREE - global PRINT_TREE_DIFF - PRINT_FULL_TREE = config.getoption("--print-full-tree") - PRINT_TREE_DIFF = config.getoption("--print-tree-diff")