From fea7c8ac9a890a94432ad94dfe1f209e2300e079 Mon Sep 17 00:00:00 2001 From: Matei Dibu Date: Tue, 4 Nov 2025 22:23:27 +0200 Subject: [PATCH] Move pytest config to pyproject.toml --- betterproto2_compiler/pyproject.toml | 8 +++++++- betterproto2_compiler/pytest.ini | 5 ----- 2 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 betterproto2_compiler/pytest.ini diff --git a/betterproto2_compiler/pyproject.toml b/betterproto2_compiler/pyproject.toml index ff98f9e0..ee572851 100644 --- a/betterproto2_compiler/pyproject.toml +++ b/betterproto2_compiler/pyproject.toml @@ -79,6 +79,12 @@ select = [ [tool.ruff.lint.isort] combine-as-imports = true +[tool.pytest.ini_options] +python_files = "test_*.py" +python_classes = "" +norecursedirs = "**/output_*" +addopts = "-p no:warnings" + [tool.poe.tasks.test] cmd = "pytest" help = "Run tests" @@ -175,4 +181,4 @@ help = "Check the code with the Ruff linter" # google/protobuf/timestamp.proto \ # google/protobuf/type.proto \ # google/protobuf/wrappers.proto \ -# google/protobuf/compiler/plugin.proto \ No newline at end of file +# google/protobuf/compiler/plugin.proto diff --git a/betterproto2_compiler/pytest.ini b/betterproto2_compiler/pytest.ini deleted file mode 100644 index bec2b960..00000000 --- a/betterproto2_compiler/pytest.ini +++ /dev/null @@ -1,5 +0,0 @@ -[pytest] -python_files = test_*.py -python_classes = -norecursedirs = **/output_* -addopts = -p no:warnings \ No newline at end of file