Skip to content

Conversation

@antonagestam
Copy link
Contributor

Closes #91

if not self.disable_cache:
mypy_cmd_options.extend(["--cache-dir", self.incremental_cache_dir])

python_version = ".".join([str(part) for part in sys.version_info[:2]])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this might be a better option, because we don't interfer with mypy options 🤔

Which one do you like best?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this makes sense. I think iIt's nice to be able to have parity between running mypy and the invocation that happens within pytest-mypy-plugins :)

@sobolevn sobolevn merged commit a9f55c1 into typeddjango:master Jan 1, 2022
@sobolevn
Copy link
Member

sobolevn commented Jan 1, 2022

Thank you! 👍

@antonagestam antonagestam deleted the fix/dont-set-python-version branch January 1, 2022 21:37
griels pushed a commit to griels/pytest-mypy-plugins that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Setting --python-version overrides option in --mypy-ini-file

2 participants