Code Monkey home page Code Monkey logo

Comments (2)

kbrose avatar kbrose commented on June 19, 2024

@parkershamblin where are your cursors in the above? Please be very explicit in how you created such a situation -- my issue template includes a "What the code looks like before pressing enter" section which you seem to have deleted, but is crucial for reproducibility. When I try to replicate this, I end up with the following steps:

# Step 1
def long_function_name(|)

# Step 2, press Enter
def long_function_name(
    |
)

# Step 3, adding arguments
def long_function_name(
    var_one, var_two, var_three,
    var_four
):|

# Step 4, press Enter
def long_function_name(
    var_one, var_two, var_three,
    var_four
):
    |

# Step 5, complete
def long_function_name(
    var_one, var_two, var_three,
    var_four
):
    print(var_one)|

I'll admit this doesn't show up in PEP8, but it is at least very clear which code belongs to the function definition vs. the function code.

from vsc-python-indent.

parkershamblin avatar parkershamblin commented on June 19, 2024

@kbrose I apologize for not including a "What the code looks like before pressing enter" section in my post. I believe that I accidentally deleted it while writing the post, but yes, the steps you listed are exact the steps I took.

Personally, I think the format of the code being generated is fine and easily readable. As you mentioned, it's clear which code belongs to the function definition vs. the function code.

If it is going a hassle to try and change it to match PEP8, I would not worry about it. I created this issue with the intent of it acting as a friendly notification to the contributors that this small difference existed, and not as an actual "issue" that must be fixed.

from vsc-python-indent.

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.