Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ load("@score_tooling//:defs.bzl", "cli_helper", "copyright_checker")
load("//:docs.bzl", "docs")

package(default_visibility = ["//visibility:public"])
exports_files(["pyproject.toml"])

copyright_checker(
name = "copyright",
Expand Down
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,47 @@ extend-exclude = [
"bazel-*",
".venv*/**",
]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "Debug"
log_cli_format = "[%(asctime)s.%(msecs)03d] [%(levelname)-3s] [%(name)s] %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"

log_format = "[%(asctime)s.%(msecs)03d] [%(levelname)-3s] [%(name)s] %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"

log_file_level = "Debug"
log_file_format = "[%(asctime)s.%(msecs)03d] [%(levelname)-3s] [%(name)s] %(message)s"
log_file_date_format = "%Y-%m-%d %H:%M:%S"

markers = [
"metadata",
"test_properties(dict): Add custom properties to test XML output",
]

norecursedirs = [
".*", # hidden folders like .git, .venv, .cache, etc.
"_build*", # common docs-as-code directory
"bazel-*", # Bazel output folders
]

junit_duration_report = "call"
junit_family = "xunit1"

filterwarnings = [
"ignore::pytest.PytestExperimentalApiWarning",
# Silence third-party deprecations from sphinx_needs targeting Python 3.14 removals.
# We'll drop these ignores once sphinx_needs releases a fix.
"ignore:.*deprecated.*Python 3\\.14.*:DeprecationWarning:sphinx_needs\\..*",
# Docutils is deprecating OptionParser in favor of argparse (0.21+).
# This one originates inside sphinx_needs.layout.
# We'll drop these ignores once sphinx/sphinx_needs releases a fix.
"ignore:^The frontend\\.OptionParser class will be replaced by a subclass of argparse\\.ArgumentParser in Docutils 0\\.21 or later\\.:DeprecationWarning:sphinx_needs\\.layout",
# This one bubbles up from stdlib optparse but is *explicitly* a Docutils message.
# We match the full message to avoid silencing unrelated optparse warnings.
# We'll drop these ignores once sphinx/sphinx_needs releases a fix.
"ignore:^The frontend\\.Option class will be removed in Docutils 0\\.21 or later\\.:DeprecationWarning:optparse",
]
pythonpath = [
"src/extensions/",
]
2 changes: 2 additions & 0 deletions scripts_bazel/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ score_py_pytest(
"//scripts_bazel:generate_sourcelinks",
"//src/extensions/score_source_code_linker",
] + all_requirements,
pytest_config = "//:pyproject.toml",
)

score_py_pytest(
Expand All @@ -29,4 +30,5 @@ score_py_pytest(
deps = [
"//scripts_bazel:merge_sourcelinks",
] + all_requirements,
pytest_config = "//:pyproject.toml",
)
1 change: 1 addition & 0 deletions src/extensions/score_any_folder/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ score_py_pytest(
size = "small",
srcs = glob(["tests/*.py"]),
deps = [":score_any_folder"],
pytest_config = "//:pyproject.toml",
)
1 change: 1 addition & 0 deletions src/extensions/score_header_service/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ score_py_pytest(
srcs = glob(["test/**/*.py"]),
# All requirements already in the library so no need to have it double
deps = [":score_header_service"],
pytest_config = "//:pyproject.toml",
)
1 change: 1 addition & 0 deletions src/extensions/score_metamodel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ score_py_pytest(
],
) + ["tests/rst/conf.py"],
deps = [":score_metamodel"],
pytest_config = "//:pyproject.toml",
)
1 change: 1 addition & 0 deletions src/extensions/score_source_code_linker/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ score_py_pytest(
":score_source_code_linker",
"//src/extensions/score_metamodel",
],
pytest_config = "//:pyproject.toml",
)
1 change: 1 addition & 0 deletions src/helper_lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ score_py_pytest(
deps = [
":helper_lib",
] + all_requirements,
pytest_config = "//:pyproject.toml",
)
Loading