Giter VIP home page Giter VIP logo

Comments (5)

Grokzen avatar Grokzen commented on July 21, 2024 1

To supress the traceback is something that is really easy to implement if -q is not enough.

The linenumber thing i am not so sure about how to implement because i am not aware of any support inside pyyaml to determine what line any key/value is sourced from. It would have to be investigated further if this is possible in pyyaml.

from pykwalify.

Grokzen avatar Grokzen commented on July 21, 2024

Just to be sure what you mean, do you just want to supress the tracebacks on validation error and keep all other output? Or do you want to supress all output, you can do this with -q for quiet verbosity and it should silence all output.

When showing line numbers, where exactly do you want it? I do not really run the original kwalify so i can't see where it shows line numbers :]

from pykwalify.

jdandrea avatar jdandrea commented on July 21, 2024

Yes, I'd like to have the option to suppress (or permit?) tracebacks specifically and keep other output.

As for the line numbers, see this example.

Both of these would be a big help with user experience. If I can figure out the needed changes and issue a pull request, I'll be happy to do that too, but I wanted to ask first in case I'd be reinventing the wheel. Also: pykwalify has functionality kwalify doesn't (which I also like). :)

from pykwalify.

jdandrea avatar jdandrea commented on July 21, 2024

Ah, sounds good, and understood about the linenumber thing. Honestly, for me, the path is plenty. For folks who are used to going to line X and fixing something, then it becomes problematic, and that's where I'm trying to see if there's a way to do that. I imagine it's not trivial.

Keep it as a wish list item, perhaps? Not urgent, and maybe I'll be able to help figure it out. For the traceback suppression, I just realized a workaround, redirect stderr to /dev/null! :)

from pykwalify.

Grokzen avatar Grokzen commented on July 21, 2024

I changed the title of this and keep is as an idea. If i find some way to do this in a way that is not too complicated, i will give it a shot.

from pykwalify.

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.