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 and sorting imports in Python files #394

Merged
merged 5 commits into from
May 31, 2022

Conversation

mcapuccini
Copy link
Contributor

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 and isort commnads (as done in the GH actions).

@mcapuccini mcapuccini requested a review from Wrede May 30, 2022 10:48
@mcapuccini mcapuccini self-assigned this May 30, 2022
mcapuccini added 2 commits May 30, 2022 10:50
Copy link
Member

@Wrede Wrede left a 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.

@mcapuccini
Copy link
Contributor Author

@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:
Copy link
Member

Choose a reason for hiding this comment

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

agains->against

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in latest commit

@ahellander ahellander self-requested a review May 31, 2022 10:09
@mcapuccini mcapuccini merged commit 34b10a4 into develop May 31, 2022
@mcapuccini mcapuccini deleted the feature/formatting branch May 31, 2022 10:43
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