Giter Club home page Giter Club logo

Comments (3)

abelcheung avatar abelcheung commented on July 19, 2024 1
* Essentially, you should have your own requirements.txt for your environment and set it up yourself
* If you want to use a fixed version of mypy, you need to fix it yourself and use the same one on local and on CI, otherwise you are likely to have problems

Yes, these 2 are the exact reason why I want to see action-mypy allowing users to specify mypy version. In a CI workflow all tools need some way to set tools versions.

Many python related tools use requirements.txt or pyproject.toml, tox has its own tox.ini to achieve the same effect, and so on. But I originally thought action-mypy doesn't have any.

You have pointed me to setup_command and it can achieve the same result, so I guess my suggestion can be closed, thanks a lot!

from action-mypy.

tsuyoshicho avatar tsuyoshicho commented on July 19, 2024

Hi @abelcheung ,
Thank you for your suggestion.


I understand your suggestion.

However, I would like to hold off because the effect is limited.

The reasons are as follows.

  • The function to install a mypy is ancillary
  • Essentially, you should have your own requirements.txt for your environment and set it up yourself
  • If you want to use a fixed version of mypy, you need to fix it yourself and use the same one on local and on CI, otherwise you are likely to have problems

We will support it in the next major version
#70

PR is welcome.

from action-mypy.

tsuyoshicho avatar tsuyoshicho commented on July 19, 2024

Note:

Now you can specify the version directly in setup_command.

from action-mypy.

Related Issues (16)

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.