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

Format code using black #661

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

vvarg229
Copy link
Collaborator

@vvarg229 vvarg229 commented Oct 1, 2023

System tests code has a problem - different formatting is applied in different files, classes, or even functions.
I'm tired of "adjusting" for each class, ignoring IDE warnings, manually removing autocorrect from the IDE's built-in formatter, etc.

I suggest formatting the code once using black formatter: https://pypi.org/project/black/
And further accept only formatted code.

I used this command to format the code:
python -m black neofs-testcases -t py310

Here are the test results:
https://http.t5.fs.neo.org/86C4P6uJC7gb5n3KkwEGpXRfdczubXyRNW5N9KeJRW73/358-1696234227/index.html
It can be seen that reformatting did not affect the test results.

System tests code has a problem - different formatting is applied in different
files, classes, or even functions.
I'm tired of "adjusting" for each class, ignoring IDE warnings, manually
removing autocorrect from the IDE's built-in formatter, etc.

I suggest formatting the code once using black formatter:
https://pypi.org/project/black/
And further accept only formatted code.

I used this command to format the code:
python -m black neofs-testcases -t py310

Signed-off-by: Oleg Kulachenko <[email protected]>
@roman-khimov roman-khimov merged commit d3f84df into nspcc-dev:master Oct 2, 2023
1 check passed
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.

3 participants