Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to indent my python code with 4 spaces #1574

Closed
3 of 5 tasks
rogaha opened this issue Mar 30, 2017 · 2 comments
Closed
3 of 5 tasks

Unable to indent my python code with 4 spaces #1574

rogaha opened this issue Mar 30, 2017 · 2 comments

Comments

@rogaha
Copy link

rogaha commented Mar 30, 2017

Description

My python is not following the indentation configured for python default=4.

screen shot 2017-03-30 at 9 06 10 am

Every time I apply atom-beautify it indents the file with 2 spaces.

Config:

  "atom-beautify":
    general:
      analytics: false
    go:
      beautify_on_save: true
    python:
      beautify_on_save: true
      indent_size: 4
    """

Input Before Beautification

This is what the code looked like before:

def run():
    """
    Temporary highland collector, it should be deprecated once
    we have kafka in place. It fetches the build requests from
    previous day saves into a CSV file that will be processed
    and pushed to Redshift
    """

    build_requests_data = get_previous_build_request_data()

Expected Output

The beautified code should have looked like this:

def run():
    """
    Temporary highland collector, it should be deprecated once
    we have kafka in place. It fetches the build requests from
    previous day saves into a CSV file that will be processed
    and pushed to Redshift
    """

    build_requests_data = get_previous_build_request_data()

Actual Output

The beautified code actually looked like this:

def run():
  """
  Temporary highland collector, it should be deprecated once
  we have kafka in place. It fetches the build requests from
  previous day saves into a CSV file that will be processed
  and pushed to Redshift
  """

  build_requests_data = get_previous_build_request_data()

Checklist

I have:

  • Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • Reloaded (or restarted) Atom to ensure it is not a caching issue
  • Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
  • Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue
@rogaha rogaha changed the title Unable to ident my python code with 4 spaces Unable to indent my python code with 4 spaces Mar 30, 2017
@Glavin001
Copy link
Owner

I see you tried to add a Config section above, however we need more information than this 😉 to help you.

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions.
Thank you.

@stale
Copy link

stale bot commented Nov 4, 2017

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 4, 2017
@stale stale bot closed this as completed Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants