Giter VIP home page Giter VIP logo

Comments (4)

tsimoshka avatar tsimoshka commented on August 22, 2024 1

Seems reasonable. I think I'll submit a PR in a day or two.

from poethepoet.

nat-n avatar nat-n commented on August 22, 2024 1

Yes the approach is good.

And here's a pre-release for your efforts! https://pypi.org/project/poethepoet/0.11.0b6/

from poethepoet.

nat-n avatar nat-n commented on August 22, 2024

Hi @tsimoshka, I see how that could be useful. I'd be hesitant to add another option as a variation on an existing one, but we could make this one also accept other values as a non-breaking change.

Maybe something like:

ingore_fail = "return_non_zero" # makes it return

or

ingore_fail = "return_zero" # equivalent to true

This would require adding a validation condition that enforces that if it's a string then it's one of the known values.

I'm focused on other features for the moment, so if you create a PR (including updates to docs and test) then that would certainly help make this a reality sooner.

What do you think?

from poethepoet.

tsimoshka avatar tsimoshka commented on August 22, 2024

@nat-n, PR is ready, take a look when you have time.

I had to update type annotations for the __options__ in base task and all subclasses to keep mypy happy and be able to parse bool and str ignore_fail option. Not sure if this is a right approach.

from poethepoet.

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.