-
Notifications
You must be signed in to change notification settings - Fork 36
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 and sorting imports in Python files #394
Conversation
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.
Please update https://github.com/scaleoutsystems/fedn/blob/develop/CONTRIBUTING.md
according to these changes. Also, include instructions for how to use the devcontainer.
@Wrede I have added contrib guidelines. I will add instruction for the devcontainer in a separated PR. |
@@ -28,3 +28,11 @@ Report a bug or propose a feature by [opening a new GitHub Issue](https://github | |||
- if your branch is a hotfix, name it **hotfix/[GitHub-Issue-ID]** | |||
|
|||
Open your pull requests against the **develop** branch unless you're resolving a critical bug in production (hotfix). Then your pull request should be against **master** branch. | |||
|
|||
### Code checks | |||
We defined GitHub actions that check code quality and formatting agains pushed branches and pull requests. We use: |
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.
agains->against
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.
Fixed in latest commit
Description
This PR introduces mandatory formatting and sorting imports in Python files. If you develop in VS code devcontainer this is now done automatically on save. Otherwise, the same can be easily achieved with
autopep8
andisort
commnads (as done in the GH actions).