https://github.com/kensho-technologies/pytest-annotate
Generate PyAnnotate annotations from your pytest tests.
https://github.com/kensho-technologies/pytest-annotate
mypy python testing testing-tools tools type-safety
Last synced: about 2 months ago
JSON representation
Generate PyAnnotate annotations from your pytest tests.
- Host: GitHub
- URL: https://github.com/kensho-technologies/pytest-annotate
- Owner: kensho-technologies
- License: apache-2.0
- Created: 2017-11-17T16:20:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T16:14:53.000Z (almost 3 years ago)
- Last Synced: 2025-03-03T23:49:31.110Z (2 months ago)
- Topics: mypy, python, testing, testing-tools, tools, type-safety
- Language: Python
- Size: 32.2 KB
- Stars: 109
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-python-typing - pytest-annotate - Pyannotate plugin for pytest. (Tools / Helper tools to add annotations to existing code)
- starred-awesome - pytest-annotate - Generate PyAnnotate annotations from your pytest tests. (Python)
README
# pytest-annotate
[](https://travis-ci.org/kensho-technologies/pytest-annotate)
[](https://opensource.org/licenses/Apache-2.0)
[](https://pypi.python.org/pypi/pytest-annotate)
[](https://pypi.python.org/pypi/pytest-annotate)
[](https://pypi.python.org/pypi/pytest-annotate)
[](https://pypi.python.org/pypi/pytest-annotate)[PyAnnotate](https://github.com/dropbox/pyannotate) as a
[pytest](https://docs.pytest.org/en/latest/) plugin.```
pip install pytest-annotate# Generate annotations by running your pytest tests as usual:
pytest --annotate-output=./annotations.json# Apply those annotations using pyannotate:
pyannotate --type-info ./annotations.json .
```