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

Add black configuration #670

Closed

Conversation

sayanchowdhury
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented May 2, 2020

Coverage Status

Coverage remained the same at 67.259% when pulling 832e633 on sayanchowdhury:add-poetery-config into 5d88e07 on pythonindia:master.

@sayanchowdhury sayanchowdhury force-pushed the add-poetery-config branch 4 times, most recently from d474ee4 to 8a988d9 Compare May 2, 2020 11:31
Copy link
Member

@palnabarun palnabarun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for cleaning this up!

One question, should we be removing that unicode thing for strings? The software stills run on Python 2 and we wouldn't want to break compatibility at this point of time.

@ananyo2012
Copy link
Contributor

ananyo2012 commented May 2, 2020

Also is this work overlapping with #667 ?

@sayanchowdhury
Copy link
Member Author

No, this is not overlapping with the #667 work.

@ananyo2012
Copy link
Contributor

@sayanchowdhury Why do we need poetry ?

@sayanchowdhury
Copy link
Member Author

@sayanchowdhury Why do we need poetry ?

pyproject.toml is the new preferred way to package the project and poetry eases the use of it.

@pradyunsg
Copy link
Contributor

pradyunsg commented May 7, 2020

It's not a "poetry configuration" file. The pyproject.toml file was standardized in PEP 518. poetry and black, utilize the "space" within that file that they are allowed to use (tool.pypi-name).

https://www.python.org/dev/peps/pep-0518/#tool-table

@pradyunsg pradyunsg changed the title Add poetry configuration to include settings for black Add black configuration May 7, 2020
@sayanchowdhury
Copy link
Member Author

It's not a "poetry configuration" file. The pyproject.toml file was standardized in PEP 518. poetry and black, utilize the "space" within that file that they are allowed to use (tool.pypi-name).

https://www.python.org/dev/peps/pep-0518/#tool-table

Right, that was the mistake on my part. That would not be poetry configuration rather the PEP. And going forward I plan to integrate poetry, and also possibly move everything from setup.cfg to pyproject.toml. I know there is an open ticket in isort to support this, which @pradyunsg created long back.

@ananyo2012
Copy link
Contributor

ananyo2012 commented May 8, 2020 via email

@sayanchowdhury
Copy link
Member Author

As of now this PR is for black configuration. If we have to migrate to another dependency manager we can have a discussion and let work accordingly

@palnabarun
Copy link
Member

@sayanchowdhury Please squash the commits/rebase your branch to remove the merge commit.

@palnabarun palnabarun closed this May 8, 2020
@palnabarun palnabarun reopened this May 8, 2020
@palnabarun
Copy link
Member

Oops! Closing was a misclick.

@sayanchowdhury
Copy link
Member Author

Closing in favour of #677

@sayanchowdhury sayanchowdhury deleted the add-poetery-config branch May 9, 2020 10:58
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

Successfully merging this pull request may close these issues.

5 participants