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: convert indent from visual to hanging #364

Closed
wants to merge 2 commits into from

Conversation

Glutexo
Copy link
Collaborator

@Glutexo Glutexo commented Jul 22, 2019

Covert all visual indentation to hanging, preferred by Black. Some lines were transformed to have an optimal length. Lines that violates Black’s standards only in terms of length, but don’t in terms of the indentation were not touched. Split multiline strings have been recompiled to have the longest lines possible.

This is a part towards a cleanly formatted code that can be transformed by Black on every commit. #335

@Glutexo Glutexo self-assigned this Jul 22, 2019
@Glutexo Glutexo mentioned this pull request Jul 22, 2019
@Glutexo Glutexo changed the title Convert indent from visual to hanging Formatting: Convert indent from visual to hanging Jul 24, 2019
@Glutexo Glutexo changed the title Formatting: Convert indent from visual to hanging Formatting: convert indent from visual to hanging Jul 24, 2019
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 24, 2019

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

@Glutexo Glutexo force-pushed the black_indentation branch from 3efe477 to 222b63a Compare July 25, 2019 08:01
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 25, 2019

Rebased, mergeable again.

@Glutexo Glutexo added the cleanup Small changes not affecting behavior label Jul 25, 2019
@Glutexo Glutexo force-pushed the black_indentation branch from 222b63a to 38a586a Compare July 29, 2019 08:31
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 29, 2019

Rebased to resolve conflicts.

Covert all visual indentation to hanging, preferred by Black. Some lines
were transformed to have an optimal length. Lines that violates Black’s
standards only in terms of length, but don’t in terms of the indentation
were not touched. Split multiline strings have been recompiled to have
the longest lines possible.
@Glutexo Glutexo force-pushed the black_indentation branch from 38a586a to 5b0aed8 Compare July 29, 2019 15:29
@Glutexo
Copy link
Collaborator Author

Glutexo commented Jul 29, 2019

And one more conflict-resolving rebase.

@dehort
Copy link
Collaborator

dehort commented Jul 29, 2019

I manually resolved the conflict and pushed this as commit 257e0de.

@dehort dehort closed this Jul 29, 2019
{"display_name": ""},
]
invalid_data_list = [
{"ansible_host": "a"*256},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whitespace fix has not survived the merge.

"infrastructure_vendor": "i" * 101,
"cloud_provider": "i" * 101}]
system_profiles = [
{"infrastructure_type": "i"*101, "infrastructure_vendor": "i"*101, "cloud_provider": "i"*101}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whitespace fixes have not survived the merge.

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