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

Formatting: Add Black as a development dependency #366

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

Glutexo
Copy link
Collaborator

@Glutexo Glutexo commented Jul 22, 2019

Added Black to the development packages list. It is added with the specific version, so it is installed even though it is a pre-release. Created a pyproject.toml configuration file for it. It is the only configuration format Black understands. Unfortunately Flake8 doesn’t support this configuration file yet, so .flake8 remains and the line length value is duplicated.

I configured it to be compatible only with Python 3.6, which we use. Line length is extended to 119 from a previous agreement. The suggested safe option is not present as it is a default.

This is a complement to pre-commit hooks (#331) that allows to run all the code cleaning stuff (#335) manually too.

@Glutexo Glutexo self-assigned this Jul 22, 2019
Copy link
Collaborator

@bsquizz bsquizz left a comment

Choose a reason for hiding this comment

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

+1 for black

@Glutexo Glutexo changed the title Add Black as a development dependency Formatting: Add Black as a development dependency Jul 24, 2019
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 24, 2019

This pull request has been approved. Can we merge it?

@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 25, 2019

Rebased to rebuild the lock file.

@Glutexo Glutexo added the cleanup Small changes not affecting behavior label Jul 25, 2019
Added Black to the development packages list. It is added with the
specific version, so it is installed even though it is a pre-release.
Created a pyproject.toml configuration file for it.
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 29, 2019

Rebased to rebuild the lock file again.

@dehort dehort merged commit 4cdeeef into RedHatInsights:master Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Small changes not affecting behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants