Skip to content

chore: have flake8 check the entire project #1429

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

Merged
merged 1 commit into from
Apr 30, 2021
Merged

chore: have flake8 check the entire project #1429

merged 1 commit into from
Apr 30, 2021

Conversation

JohnVillalovos
Copy link
Member

Have flake8 run at the top-level of the projects instead of just the
gitlab directory.

@codecov-commenter
Copy link

Codecov Report

Merging #1429 (7160935) into master (98891eb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1429   +/-   ##
=======================================
  Coverage   80.24%   80.24%           
=======================================
  Files          73       73           
  Lines        4064     4064           
=======================================
  Hits         3261     3261           
  Misses        803      803           
Flag Coverage Δ
unit 80.24% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98891eb...7160935. Read the comment docs.

Copy link
Member

@max-wittig max-wittig left a comment

Choose a reason for hiding this comment

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

Nice catch!

Do we need to assign variables that we're not using to _?

@JohnVillalovos
Copy link
Member Author

Nice catch!

Do we need to assign variables that we're not using to _?

No. The only reason I had for doing that was to make it clear that the call returns something.

I was undecided if I should just delete the assignment or use _. So I went with _ 😀

But I will re-do it and delete the assignments.

@max-wittig
Copy link
Member

If we want to check, if it's returning something we should assert instead. But I think this is already checked somewhere else.

You can also apply the suggestions and I squash after, if you like 😃

Have flake8 run at the top-level of the projects instead of just the
gitlab directory.
@JohnVillalovos
Copy link
Member Author

@max-wittig Updated. I think I have changed everything as requested.

@max-wittig max-wittig merged commit b498ebd into python-gitlab:master Apr 30, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/flake8 branch January 4, 2022 06:53
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