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
Conversation
@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. |
How have you tested this? |
encord/orm/dataset.py
Outdated
class DatasetUserRole(IntEnum): | ||
ADMIN = 0, | ||
ADMIN = (0,) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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.
Cool thanks |
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 arun
command we would need to do thepoetry install
including dev dependencies.