Giter VIP home page Giter VIP logo

Comments (3)

elarivie avatar elarivie commented on September 28, 2024

Hello @jmanuel1

Personal comment: It is kinda counter intuitive that relative path defined in the configuration file are base on the CWD of future mypy processes instead of being base on the configuration file path. This sounds like a mypy bug to me.

I just did a commit with a possible solution to your issue:
b74c0e5

Could you give it a try and tell me if it fixes your issue… if it does I'll include the changes in the next release of linter-mypy I am planning to do in the next few days.

The fix that I did is to set the CWD to the root as it is right now but not if a configuration file is provided.

If a configuration file is provided, the CWD is instead set to the folder containing the configuration file.

Doing so I expect that relative paths defined within the configuration file will point to the expected folder.

from linter-mypy.

jmanuel1 avatar jmanuel1 commented on September 28, 2024

Hi @elarivie, the fix works on my end, thank you! It's too bad that mypy can be kind of surprising when it comes to paths :(

from linter-mypy.

elarivie avatar elarivie commented on September 28, 2024

Hi @jmanuel1, it is now part of linter-mypy v2.6.9

from linter-mypy.

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.