Git Product home page Git Product logo

Comments (7)

kmpm avatar kmpm commented on July 23, 2024

Do you know any other python project that have the "Blank lines must have the same indentation level as the immediately following non-blank line" rule? Or for that matter the rest of the guide.

I'm just trying to automate my toolset and would appreciate hints on how other have configured their linters etc.

from trade-dangerous.

eyeonus avatar eyeonus commented on July 23, 2024

I don't know of any other python projects, period.

from trade-dangerous.

eyeonus avatar eyeonus commented on July 23, 2024

Regarding the indentation, I'm still trying to figure out how pylint checkers work in order to make one to correctly handle the indenting, as well as setting up pylint to conform to the style being used in TD, such as naming conventions, etc.

I'm not finding very good documentation on how checkers work, and the custom_raw.py example isn't much help, but I did manage to figure out how to correctly automate the indentation using find and sed:

find * -type f -name "*.py" -print0 | xargs -0 sed -i -e '/^ *$/{N;s/^ *\n\( *\)\(.*\)/\1\n\1\2/}'

from trade-dangerous.

aadler avatar aadler commented on July 23, 2024

As this is written in Python 3.x, using PEP 8 as the style guide makes the most sense, no?

from trade-dangerous.

eyeonus avatar eyeonus commented on July 23, 2024

Except as the above differs from that, sure.

from trade-dangerous.

kmpm avatar kmpm commented on July 23, 2024

How can { eggs: 2 } be OK if spaces immediately inside brackets or braces is to be avoided?
Is it a typo or can you clarify

from trade-dangerous.

eyeonus avatar eyeonus commented on July 23, 2024

Typo, I think

from trade-dangerous.

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.