Skip to content

Commit

Permalink
Cover report/junit with pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
happz authored and psss committed Mar 11, 2024
1 parent d7a650f commit 04ca271
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tmt/steps/report/junit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04ca271

Please sign in to comment.