Coder Social home page Coder Social logo

Comments (3)

jrief avatar jrief commented on June 23, 2024

Hi @AndreasBackx ,
this may seem weird, but I'm using the quoting style formerly proposed by Douglas Crockford:
"Single quotes for internal strings and double quotes for strings readable by humans".
This can be a big advantage, whenever one has to search for strings visible in other natural languages.
You therefore might see statements in my code such as:

color = ChoiceField(choices=[('red', "Red"), ('green', "Green"), ('blue', "Blue")])

This of course also applies to docstrings:

def foo():
    """Do foo stuff"""

About the line length, I follow the guideline from Django, which allows 119 characters, but I use a soft limit of 100, which means that I try to stay below, if otherwise I would have to use a \ character.

I fully agree, that this should be added to a contributing file.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 23, 2024

Good to know that you use that quoting style. I don't really mind and will do what has been done in the past on the project. Mine were only suggestions in case there weren't any.

I would also suggest using isort for imports.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 23, 2024

No CONTRIBUTING.md I guess?

from django-sass-processor.

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.