From 15a5e37358a2f1e502a35992f2ef8e6a7c7abbc4 Mon Sep 17 00:00:00 2001 From: Daryl Lim Date: Sat, 2 Mar 2024 21:48:51 -0800 Subject: [PATCH] test: Add pytest config --- .vscode/settings.json | 5 +++++ pyproject.toml | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..d969f962b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "python.testing.pytestArgs": ["tests"], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} diff --git a/pyproject.toml b/pyproject.toml index 347a9d974..adf1a9a76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,13 @@ ignore = [ "W191", # indentation contains tabs ] +[tool.pytest.ini_options] +addopts = ["--strict-config", "--strict-markers", "-vvrP"] +xfail_strict = true +log_level = "INFO" +log_cli = true +log_cli_level = "INFO" + [tool.ruff.pyupgrade] # Preserve types, even if a file imports `from __future__ import annotations`. keep-runtime-typing = true