Comments (7)
Hi! Thanks for the info!
Can you please provide a full example?
from pytest-mypy-plugins.
When I have these settings in a test .yaml file (note the verbosity
):
mypy_config: |
[mypy]
# !! IMPORTANT !!
namespace_packages = True
verbosity = 1
This line appears in my output:
E LOG: Metadata fresh for genericpath: file /home/aghast/env/versions/3.6.9/envs/venv-aghast-utils/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/genericpathi (diff)
I don't have a env
directory under $HOME. But I do have a .pyenv
directory. And I don't have a file named .../2and3/genericpathi
but I do have one named .../2and3/genericpath.pyi
.
The difference in both cases is that the replace(".py", "")
is deleting too much.
from pytest-mypy-plugins.
Oh, now I get it! Thanks a lot! 👍
Btw, PRs are welcome 😉
from pytest-mypy-plugins.
I thought about that, but there's no way to write a test for "this one line appears somewhere in the output". :( And when you enable verbosity=1
you get a LOT of output...
from pytest-mypy-plugins.
We can really skip a test for it
from pytest-mypy-plugins.
😲 Step away from the keyboard! The TDD-police have been notified and will arrive shortly.
from pytest-mypy-plugins.
🚓 👮
They won't catch me! 😆
from pytest-mypy-plugins.
Related Issues (20)
- Test failures using Python 3.11 and Mypy 0.981 HOT 4
- greater-than sign in parametrized values (to check function return values)
- Fails in Python 3.12 due to usage of pkg_resources HOT 3
- sdist is missing tests HOT 5
- chevron is not maintained
- Allow parametrizing `mypy_config`
- Support `--mypy-extra-options` CLI flag
- How to solve Python 3.8/3.9 changes in typing representation HOT 4
- Is there a way to mark `xfail` tests, also with matching output?
- "FileNotFoundError" due to missing "schema.json" after installation
- Add plugin configuration through pyproject.toml? HOT 5
- Ignore mypy errors from site-packages imports HOT 3
- Adjust test-mypy-config.yml to test with more stable mypy options HOT 1
- Allow custom properties in our json schema HOT 1
- New deprecation warning with pytest 8.1 (YamlTestFile not using a cooperative constructor) HOT 2
- Testing changes and caching behaviour HOT 5
- [tool.mypy.overrides] sections are dropped from config
- Using `assert_type` together with `pytest-mypy-plugins`
- Support for older pytest HOT 6
- test failures are really really difficult to read HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-mypy-plugins.