Giter Club home page Giter Club logo

Comments (4)

tsuyoshicho avatar tsuyoshicho commented on June 20, 2024 1

Hi, @jonathanberthias,

Thanks for the report.

I have added setup_method for future use.
I presented the setup for safety, but I'm glad it works with adaptive as well.

I did not know that the poetry shell did not work in Github workflow.
Thanks for letting me know.

I will release it in a minor VerUp.

Regard.
Cho

from action-mypy.

tsuyoshicho avatar tsuyoshicho commented on June 20, 2024

I will consider responding this issue.

from action-mypy.

tsuyoshicho avatar tsuyoshicho commented on June 20, 2024

@jonathanberthias san,

Fix action-mypy for using "Poetry".
https://github.com/tsuyoshicho/action-mypy/tree/feature/adaptivesetup

Could you please test this branch?

      - uses: tsuyoshicho/action-mypy@feature/adaptivesetup
        with:
          # your settings
          # ...
          # Poetry support
          execute_command: 'poetry run mypy'
          setup_method: 'nothing'

(Also check the README.)

from action-mypy.

jonathanberthias avatar jonathanberthias commented on June 20, 2024

@tsuyoshicho

Thanks for being so quick to reply!

I just tested the branch, and it works exactly as expected! Actually, I didn't need the setup_method change since the poetry run mypy --version command succeeds, and installation is skipped even with the "adaptive" method.

Also, FYI, I can't run poetry shell in GitHub workflows:

Run poetry shell
Spawning shell within /home/runner/work/test-stuff/test-stuff/.venv

(25, 'Inappropriate ioctl for device')
Error: Process completed with exit code 1.

that's why I have to run poetry run mypy explicitly.

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.