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 checks to PR github actions #102

Merged
merged 6 commits into from Feb 28, 2022
Merged

Add black checks to PR github actions #102

merged 6 commits into from Feb 28, 2022

Conversation

denis-cord
Copy link
Contributor

@denis-cord denis-cord commented Feb 28, 2022

This PR also does all the necessary formatting.

I have chosen against a run command and instead used an example from the black docs. If we wanted a run command we would need to do the poetry install including dev dependencies.

@github-actions
Copy link

github-actions bot commented Feb 28, 2022

Unit test report

  1 files  ±0  1 suites  ±0   2s ⏱️ -1s
15 tests ±0  5 ✔️ ±0  10 💤 ±0  0 ±0 

Results for commit b04ece3. ± Comparison against base commit 320d887.

♻️ This comment has been updated with latest results.

@denis-cord
Copy link
Contributor Author

@rizwancordtech this is all done. It was too easy to add it as an extra step so I did this for now to make it a bit cleaner.

@rizwancordtech
Copy link
Contributor

How have you tested this?

class DatasetUserRole(IntEnum):
ADMIN = 0,
ADMIN = (0,)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why has this got brackets around it but the 1 below doesn't?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assume because of the added ,. I will remove it. That's a good catch

Copy link
Contributor Author

@denis-cord denis-cord left a comment

Choose a reason for hiding this comment

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

@rizwancordtech I have checked that on this PR it runs black. I also checked if some files are not formatted well, that this step reports an error.

@rizwancordtech
Copy link
Contributor

@rizwancordtech I have checked that on this PR it runs black. I also checked if some files are not formatted well, that this step reports an error.

Cool thanks

@denis-cord denis-cord merged commit 8898277 into master Feb 28, 2022
@sergei-encord sergei-encord deleted the black-integration branch May 11, 2023 16:03
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.

None yet

2 participants