Code Monkey home page Code Monkey logo

Comments (7)

sobolevn avatar sobolevn commented on August 25, 2024

Hi! Thanks for the info!

Can you please provide a full example?

from pytest-mypy-plugins.

aghast avatar aghast commented on August 25, 2024

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.

sobolevn avatar sobolevn commented on August 25, 2024

Oh, now I get it! Thanks a lot! 👍

Btw, PRs are welcome 😉

from pytest-mypy-plugins.

aghast avatar aghast commented on August 25, 2024

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.

sobolevn avatar sobolevn commented on August 25, 2024

We can really skip a test for it

from pytest-mypy-plugins.

aghast avatar aghast commented on August 25, 2024

😲 Step away from the keyboard! The TDD-police have been notified and will arrive shortly.

from pytest-mypy-plugins.

sobolevn avatar sobolevn commented on August 25, 2024

🚓 👮

They won't catch me! 😆

from pytest-mypy-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.