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

pycodestyle #352

Merged
merged 14 commits into from
Oct 26, 2023
Merged

pycodestyle #352

merged 14 commits into from
Oct 26, 2023

Conversation

ssssarah
Copy link
Contributor

@ssssarah ssssarah commented Oct 26, 2023

Inspired by #237 , but on the more recent codebase.

@ssssarah ssssarah requested a review from crisely09 October 26, 2023 10:20
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2023

Codecov Report

Attention: 138 lines in your changes are missing coverage. Please review.

Comparison is base (ab22a83) 74.30% compared to head (88cf0a9) 74.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   74.30%   74.20%   -0.10%     
==========================================
  Files          93       93              
  Lines        5934     5913      -21     
==========================================
- Hits         4409     4388      -21     
  Misses       1525     1525              
Flag Coverage Δ
unittests 74.20% <59.17%> (-0.10%) ⬇️

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

Files Coverage Δ
kgforge/core/__init__.py 100.00% <ø> (ø)
kgforge/core/archetypes/mapper.py 69.69% <ø> (ø)
kgforge/core/commons/actions.py 93.75% <ø> (ø)
kgforge/core/commons/attributes.py 72.22% <ø> (ø)
kgforge/core/commons/context.py 92.30% <100.00%> (ø)
kgforge/core/commons/dictionaries.py 72.72% <100.00%> (ø)
kgforge/core/commons/exceptions.py 100.00% <ø> (ø)
kgforge/core/commons/files.py 54.54% <100.00%> (ø)
kgforge/core/commons/formatter.py 100.00% <ø> (ø)
kgforge/core/commons/query_builder.py 81.25% <ø> (ø)
... and 47 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

.pylintrc Show resolved Hide resolved
@MFSY
Copy link
Collaborator

MFSY commented Oct 26, 2023

Inspired by #237 , but on the more recent codebase. Running tox -e lint led to many warnings. This is just addressing some of them. Maybe running the command should be done as job systematically (as proposed in the previously mentioned MR).

Please add the job.

@ssssarah ssssarah requested a review from MFSY October 26, 2023 11:17
@ssssarah
Copy link
Contributor Author

Inspired by #237 , but on the more recent codebase. Running tox -e lint led to many warnings. This is just addressing some of them. Maybe running the command should be done as job systematically (as proposed in the previously mentioned MR).

Please add the job.

I've just added the job in the github workflows, but it only runs pycodestyle because I've fixed all pycodestyle errors, but I haven't fixed all pylint errors, so if added the pylint one it would fail

@crisely09
Copy link
Contributor

It's fine with me. I will approve but let @MFSY have the last word.

@ssssarah
Copy link
Contributor Author

Although I don't think it helps much, I've re-enabled pylint and added a threshold under which the job fails. The score should be above 8.5/10

@ssssarah ssssarah merged commit 14ffc1a into master Oct 26, 2023
1 check passed
@ssssarah ssssarah mentioned this pull request Oct 26, 2023
@ssssarah ssssarah deleted the pycodestyle branch October 30, 2023 08:45
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.

4 participants