From a385d20810faadf5e990293d09d8718d12967a0a Mon Sep 17 00:00:00 2001 From: goodboy Date: Mon, 2 Mar 2026 18:09:36 -0500 Subject: [PATCH] Disable the `xonsh` autoloaded `pytest` plugin --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f7dd6ac2..e7d2cdd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,6 +161,7 @@ all_bullets = true [tool.pytest.ini_options] minversion = '6.0' +# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options testpaths = [ 'tests' ] @@ -171,10 +172,17 @@ addopts = [ '--import-mode=importlib', # don't show frickin captured logs AGAIN in the report.. '--show-capture=no', + + # disable `xonsh` plugin + # https://docs.pytest.org/en/stable/how-to/plugins.html#disabling-plugins-from-autoloading + # https://docs.pytest.org/en/stable/how-to/plugins.html#deactivating-unregistering-a-plugin-by-name + '-p no:xonsh' ] log_cli = false # TODO: maybe some of these layout choices? # https://docs.pytest.org/en/8.0.x/explanation/goodpractices.html#choosing-a-test-layout-import-rules # pythonpath = "src" +# https://docs.pytest.org/en/stable/reference/reference.html#confval-console_output_style +console_output_style = 'progress' # ------ tool.pytest ------