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

Flake8 linter fixes + updating PR lint rules #1130

Merged

Conversation

teoparvanov
Copy link
Collaborator

@teoparvanov teoparvanov commented Nov 8, 2024

Here we update the ubuntu.yml workflow to use the same (OpenFL-specific) lint rules as the lint.yml workflow that runs as part of the PR pipeline.

@teoparvanov teoparvanov changed the title Flake8 linter fixes + wiring with PR pipeline Flake8 linter fixes + wire flak8 with the PR pipeline Nov 8, 2024
Signed-off-by: Teodor Parvanov <[email protected]>
@teoparvanov teoparvanov changed the title Flake8 linter fixes + wire flak8 with the PR pipeline Flake8 linter fixes + wire flake8 with the PR pipeline Nov 8, 2024
@MasterSkepticista
Copy link
Collaborator

MasterSkepticista commented Nov 8, 2024

@teoparvanov Those do not appear in Lint CI because there are exceptions to flake8 provided via a config file in shell/lint.sh, and it only covers source code, no examples/tutorials/templates.

I think we need to remove all flake8 checks elsewhere. Any exceptions should be captured in setup.cfg.

@teoparvanov
Copy link
Collaborator Author

@teoparvanov Those do not appear in Lint CI because there are exceptions to flake8 provided via a config file in shell/lint.sh, and it only covers source code, no examples/tutorials/templates.

I think we need to remove all flake8 checks elsewhere. Any exceptions should be captured in setup.cfg.

Thanks for pointing this out, @MasterSkepticista , I wasn't aware of the setup.cfg file. Let me take a look and I'll update the PR accordingly.

@teoparvanov teoparvanov changed the title Flake8 linter fixes + wire flake8 with the PR pipeline Flake8 linter fixes Nov 8, 2024
@teoparvanov teoparvanov changed the title Flake8 linter fixes Flake8 linter fixes + updating PR lint rules Nov 8, 2024
Copy link
Collaborator

@MasterSkepticista MasterSkepticista left a comment

Choose a reason for hiding this comment

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

JFYI: For files in openfl-workspace, this formatting was done to silence previous flake8 errors, but it won't make any difference in the future since ./shell/lint.sh only covers openfl/** code.

You may choose to keep these changes or only keep ubuntu.yml and lint.yml changes.

.github/workflows/ubuntu.yml Show resolved Hide resolved
This reverts commit e554695.

Signed-off-by: Teodor Parvanov <[email protected]>
@teoparvanov teoparvanov merged commit 522208a into securefederatedai:develop Nov 11, 2024
28 checks passed
@teoparvanov teoparvanov deleted the flake8-linter-fixes branch November 18, 2024 10:38
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.

2 participants