diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a442433c2..02a4f1f2a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,8 @@ repos: - "requests>=2.25.1" # 2.28.2 / 2.31.0 - "ruamel.yaml>=0.16.6" # 0.17.32 / 0.17.32 - "urllib3>=1.26.5, <2.0" # 1.26.16 / 2.0.4 + # report-junit + - "junit_xml>=1.9" - "typing-extensions>=4.4.0; python_version < '3.10'" # TypeAlias introduced in 3.10, Self in 3.11 - "pytest" @@ -73,6 +75,8 @@ repos: - "requests>=2.25.1" # 2.28.2 / 2.31.0 - "ruamel.yaml>=0.16.6" # 0.17.32 / 0.17.32 - "urllib3>=1.26.5, <2.0" # 1.26.16 / 2.0.4 + # report-junit + - "junit_xml>=1.9" - "typing-extensions>=4.4.0; python_version < '3.10'" # TypeAlias introduced in 3.10, Self in 3.11 - "pytest" diff --git a/pyproject.toml b/pyproject.toml index 7b35fc0c99..c24c78f951 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -228,7 +228,6 @@ ignore = [ "tmt/steps/prepare/*.py", "tmt/steps/provision/*.py", "tmt/steps/report/__init__.py", - "tmt/steps/report/junit.py", "tmt/steps/report/polarion.py", "tmt/steps/report/reportportal.py", "tmt/__init__.py", diff --git a/tmt/steps/report/junit.py b/tmt/steps/report/junit.py index cb2e3ee3d3..f4f293d20a 100644 --- a/tmt/steps/report/junit.py +++ b/tmt/steps/report/junit.py @@ -4,10 +4,12 @@ import tmt import tmt.base +import tmt.log import tmt.options import tmt.result import tmt.steps import tmt.steps.report +import tmt.utils from tmt.utils import Path, field if TYPE_CHECKING: