Giter VIP home page Giter VIP logo

Comments (7)

christophe-david avatar christophe-david commented on June 23, 2024 1

@sverley, I guess you have the line length in mind, as it is the only recommendation that I find not respected from my experience with WhatsOpt.

My bad, I had not realized that the generated code was modified by my automated runs of Black. So indeed, there is room for improvement 😅.

from whatsopt.

relf avatar relf commented on June 23, 2024

Thanks for the heads up. As I use an IDE which auto-formats code on save, I try to keep generated code readable but I forgot a bit about PEP8 when writing code templates (and trailing spaces, among other things, slips through). I should create an automated test before fixing this.

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

@sverley, I guess you have the line length in mind, as it is the only recommendation that I find not respected from my experience with WhatsOpt.

I also think that limiting line length would be a good thing.
Nevertheless, though I understand the limitation to 79 characters in a general context, I think that, for standard applications of WhatsOpt, such a strong limitation could hinder readability more than improve it.
Yet I would support the choice to limit line lengths to 100 (or at least 88, which is the nicely argued default value of Black).

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

In the same vein, I would suggest to remove the coding: utf-8 lines, since Python 2 is no more supported.

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

... And factory classes should not inherit from object anymore 😁

from whatsopt.

sverley avatar sverley commented on June 23, 2024

I have started a fix #67

from whatsopt.

relf avatar relf commented on June 23, 2024

I consider this is fixed by #67 and #80. Feel free to open specific issue related to generated code format.

from whatsopt.

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.