Skip to content

pylint (Resolves #48) #117

Merged
Qwlouse merged 21 commits intomainfrom
pylint
Jun 14, 2021
Merged

pylint (Resolves #48) #117
Qwlouse merged 21 commits intomainfrom
pylint

Conversation

@taiya
Copy link
Copy Markdown
Collaborator

@taiya taiya commented Jun 11, 2021

No description provided.

@google-cla google-cla Bot added the cla: yes Used by the SignCLA bot label Jun 11, 2021
@taiya taiya linked an issue Jun 11, 2021 that may be closed by this pull request
Andrea Tagliasacchi added 2 commits June 10, 2021 17:29
@taiya taiya requested a review from Qwlouse June 11, 2021 00:40
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 11, 2021

Codecov Report

Merging #117 (c217654) into issue121 (5041353) will decrease coverage by 0.0%.
The diff coverage is 19.2%.

Impacted file tree graph

@@            Coverage Diff             @@
##           issue121    #117     +/-   ##
==========================================
- Coverage      49.5%   49.4%   -0.1%     
==========================================
  Files            39      39             
  Lines          2847    2855      +8     
==========================================
+ Hits           1410    1412      +2     
- Misses         1437    1443      +6     
Impacted Files Coverage Δ
kubric/assets/asset_preprocessing.py 0.0% <0.0%> (ø)
kubric/assets/asset_source.py 27.1% <0.0%> (ø)
kubric/assets/klevr.py 36.3% <0.0%> (-1.9%) ⬇️
kubric/core/cameras.py 60.8% <0.0%> (ø)
kubric/core/materials.py 100.0% <ø> (ø)
kubric/datasets/katr.py 0.0% <0.0%> (ø)
kubric/datasets/klevr.py 0.0% <0.0%> (ø)
kubric/datasets/klevr_uni.py 0.0% <0.0%> (ø)
kubric/plotting.py 0.0% <0.0%> (ø)
kubric/post_processing.py 14.2% <ø> (ø)
... and 17 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 5041353...c217654. Read the comment docs.

@taiya taiya changed the base branch from main to issue121 June 11, 2021 22:43
Comment thread kubric/core/assets.py Outdated
yield self
finally:
return
return # TODO(klausg): deal with pylint warning
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not sure what was the rationale behind this code fragment.
Pylint complaining profusely: return statement in finally block may swallow exception

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have disabled the warning, and left several TODO(klausg) for things I cannot resolve myself.

@taiya
Copy link
Copy Markdown
Collaborator Author

taiya commented Jun 12, 2021

⚠️⚠️⚠️ currently diffbase is branch issue121 – swap to main before merging! ⚠️⚠️⚠️

@Qwlouse 🎉 🎉 🎉 (took me ~4 hours...)

~/dev/kubric: make pylint
pylint --rcfile=.pylintrc ./kubric

-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 8.72/10, +1.28)

where these all work as advertised.

make pytest
make examples/helloworld
make examples/simulator

make examples/klevr is still having some issues (mostly GCP related)

@Qwlouse Qwlouse changed the base branch from issue121 to main June 14, 2021 13:36
@Qwlouse Qwlouse merged commit 6060a36 into main Jun 14, 2021
@Qwlouse Qwlouse deleted the pylint branch June 14, 2021 13:42
taiya pushed a commit that referenced this pull request Aug 18, 2021
* google pylint configuration

* pylint fixes

* docstring objects

* removed __all__ and compartimentalized pybullet & blender

* pylint complaint fix

* pylint tweaks assets

* pylint traits.py

* pylint klevr_uni.py

* pylint datasets/klevr.py

* pylint kubric/core/color.py

* pybullet pylint

* pylint kubric/utils.py

* pylint kubric/renderer/blender.py

* pylint kubric/renderer/blender_utils.py

* pylint kubric/*

* test.yml executes on ALL branches now

* pylint.yml executes on ALL pull requests

* test.yml: better workflow name

* fixed last pylint error

Co-authored-by: Klaus Greff <klausg@google.com>
taiya pushed a commit that referenced this pull request Aug 18, 2021
* google pylint configuration

* pylint fixes

* docstring objects

* removed __all__ and compartimentalized pybullet & blender

* pylint complaint fix

* pylint tweaks assets

* pylint traits.py

* pylint klevr_uni.py

* pylint datasets/klevr.py

* pylint kubric/core/color.py

* pybullet pylint

* pylint kubric/utils.py

* pylint kubric/renderer/blender.py

* pylint kubric/renderer/blender_utils.py

* pylint kubric/*

* test.yml executes on ALL branches now

* pylint.yml executes on ALL pull requests

* test.yml: better workflow name

* fixed last pylint error

Co-authored-by: Klaus Greff <klausg@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Used by the SignCLA bot

Development

Successfully merging this pull request may close these issues.

Configure python linter

3 participants