pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.32k stars 221 forks source link

Add type annotations #505

Closed youtux closed 2 years ago

youtux commented 2 years ago

Add type annotations to the codebase, and add a CI step to run mypy (for now we let it fail, as fixing those failures would require even more time)

codecov[bot] commented 2 years ago

Codecov Report

Merging #505 (e378ccb) into master (ddcbeb5) will decrease coverage by 2.71%. The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #505      +/-   ##
==========================================
- Coverage   95.40%   92.69%   -2.72%     
==========================================
  Files          48       48              
  Lines        1566     1642      +76     
  Branches      166      176      +10     
==========================================
+ Hits         1494     1522      +28     
- Misses         45       82      +37     
- Partials       27       38      +11     
Impacted Files Coverage Δ
pytest_bdd/gherkin_terminal_reporter.py 75.71% <61.53%> (-4.94%) :arrow_down:
pytest_bdd/generation.py 83.48% <63.63%> (-6.21%) :arrow_down:
pytest_bdd/plugin.py 83.87% <66.66%> (-14.13%) :arrow_down:
tests/utils.py 84.61% <66.66%> (-15.39%) :arrow_down:
tests/feature/test_cucumber_json.py 92.59% <71.42%> (-7.41%) :arrow_down:
pytest_bdd/cucumber_json.py 86.36% <72.72%> (-6.97%) :arrow_down:
pytest_bdd/reporting.py 78.68% <74.07%> (-9.78%) :arrow_down:
pytest_bdd/utils.py 87.09% <77.77%> (-5.77%) :arrow_down:
pytest_bdd/scenario.py 89.53% <84.37%> (-1.49%) :arrow_down:
pytest_bdd/parsers.py 88.00% <85.71%> (-7.66%) :arrow_down:
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ddcbeb5...e378ccb. Read the comment docs.