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

Started indenting triple quotes strangely #2

Closed
j-walker23 opened this issue Feb 26, 2021 · 3 comments
Closed

Started indenting triple quotes strangely #2

j-walker23 opened this issue Feb 26, 2021 · 3 comments

Comments

@j-walker23
Copy link

First I want to say, this package has been amazing. Been using it damn near since you made it and I was so appreciative that it existed.

And I know you built it purposefully to not have to spend any time on it, so I feel bad even adding this issue.

But i'm hoping it might be an easy thing.

Recently formatting has been changing triple quotes in function definitions like this.

def some_fn():
  """Some Def
  
  Extra info
  definitions
  """

## After cblack recently due to some new black version i'm sure. 
## I would just figure out that black version, but pipenv sucks
## and makes pinning cblack and black impossible due to the 
## pre release status of black.

def some_fn():
  """Some Def

    Extra info
    definitions
    """
  
# All of the lines under the first """ are indented to 4 spaces
# With the top """ staying correctly at 2 spaces.

I wouldn't even be bothering you. But this is making pull-requests super lame.

If you have any donation receivability setup, I would loving donate $100 to make it worth your time!

@pausan pausan closed this as completed in 7383b10 Feb 26, 2021
@pausan
Copy link
Owner

pausan commented Feb 26, 2021

I think I've fixed it, I still have to update the package in the next 15 minutes. Given the changes in Black I had to patch another method to make it work properly.

If you want you can do that $100 donation to a charity like:
https://www.oxfamintermon.org/
https://www.msf.org/

Or similar.

Thanks for the report.

@pausan
Copy link
Owner

pausan commented Feb 26, 2021

I've uploaded the latest version to the public pip repo. Run the following two commands to update it:

pip3 install cblack --upgrade 

@j-walker23
Copy link
Author

Screen Shot 2021-02-25 at 11 33 20 PM

Thank you so much, I really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants