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

Enable flake8 on Travis CI #48

Merged
merged 5 commits into from
Aug 5, 2022

Conversation

winniehell
Copy link
Contributor

Description of the issue/feature this PR addresses

Enables automated flake8 check in Travis CI and fixes existing violations.

see also senaite/senaite.core#2077

script:
- bin/flake8 --config travis_ci_flake8.cfg src/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it looks like Travis CI currently doesn't run on pull requests, so this change is not tested

Copy link
Contributor

Choose a reason for hiding this comment

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

At least we can run it manually against the configuration, so no worries.

[flake8]
# temporarily disable violations for existing code until they are cleaned up
extend-ignore =
# E501: line too long
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has roughly 60 violations, so I didn't want to clean them up in this pull request. Does this project generally stick to the 79 characters limit?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @winniehell, thanks for all your efforts in cleaning up the codebases.
Yes, it should actually stick to the 79 characters limit, but I'm not sure with the route decorators, which might exceed this limit here and there...

@winniehell
Copy link
Contributor Author

@ramonski you may have missed this pull request. can I ask you to take a look?

@ramonski ramonski merged commit 2e5cd47 into senaite:2.x Aug 5, 2022
@winniehell winniehell deleted the winniehell-travis-flake8 branch August 5, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants