Add --no-mypy option to disable mypy check
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Start by reviewing pytest.ini and the plugin option handling, then compare the linked pytest-pylint and pytest-cov implementations. The work is done when pytest accepts --no-mypy and skips the configured mypy check while the default --mypy behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Right now I have --mypy in my pytest.ini file so that mypy runs by default when my tests are run, both locally and in CI
However, when I'm quickly iterating in testing a new feature, I would like to skip the mypy check since I first just want to make sure that the feature works.
Having a --no-mypy option to pass through to pytest when running locally would be great, rather than having to just deal with the mypy run each time, or go and manually modify my pytest.ini file to comment out the --mypy option.
The pytest-pylint and pytest-cov plugins provide this functionality:
- https://github.com/carsongee/pytest-pylint/blob/781d6a8d67377b543756d0123c6259b8df77c0a8/pytest_pylint/plugin.py#L33-L38
- https://github.com/pytest-dev/pytest-cov/blob/00713b3fec90cb8c98a9e4bfb3212e574c08e67b/src/pytest_cov/plugin.py#L110-L112
I'm happy to add a PR if you agree that this is a worthwhile feature
- Dominant language
- Python
- Stars
- 257
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from realpython/pytest-mypy
-
integration
Difficulty 3/5 1-2 days Newbie friendliness 38/100
realpython/pytest-mypy#196 · 2 comments ·
-
realpython/pytest-mypy#190 · 1 comment · 1 assignee ·
-
integration
Difficulty 3/5 1-2 days Newbie friendliness 38/100
realpython/pytest-mypy#160 · 4 comments ·
-
Expected mypy errors Open
realpython/pytest-mypy#105 · 4 comments · 1 assignee ·
-
reporting
Difficulty 5/5 Over a week Newbie friendliness 30/100
realpython/pytest-mypy#23 · 1 comment · 2 reactions ·
All issues in realpython/pytest-mypy
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·