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

maint: modifying files to conform with "PTH" ruff rule #1949

Merged
merged 29 commits into from
Dec 11, 2024

Conversation

moe-ad
Copy link
Contributor

@moe-ad moe-ad commented Dec 3, 2024

This PR is associated with #296. Flake9-use-pathlib ruff rule will be addressed via this PR.

@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from 9cf6bfe to 6401495 Compare December 3, 2024 11:02
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 79.31034% with 24 lines in your changes missing coverage. Please review.

Project coverage is 88.35%. Comparing base (d2063fe) to head (f4c136b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1949      +/-   ##
==========================================
+ Coverage   88.33%   88.35%   +0.01%     
==========================================
  Files          89       89              
  Lines       10225    10242      +17     
==========================================
+ Hits         9032     9049      +17     
  Misses       1193     1193              

@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from 8fbf4c5 to 9e18458 Compare December 8, 2024 18:19
@moe-ad
Copy link
Contributor Author

moe-ad commented Dec 8, 2024

Now all changes so far are passing the tests.

@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from 1360f72 to f4f38f9 Compare December 9, 2024 10:54
@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from 880c247 to 76935b8 Compare December 10, 2024 17:19
@moe-ad moe-ad changed the title maint: edited multiple files to conform with "PTH" ruff rule maint: modifying files to conform with "PTH" ruff rule Dec 10, 2024
@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from d150fc9 to 0cb5abb Compare December 11, 2024 08:48
@moe-ad moe-ad requested a review from jorgepiloto December 11, 2024 09:14
@moe-ad moe-ad marked this pull request as ready for review December 11, 2024 09:38
@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from c0f75e7 to fcd1845 Compare December 11, 2024 10:14
Copy link
Member

@jorgepiloto jorgepiloto left a comment

Choose a reason for hiding this comment

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

Thanks for such a big contribution, @moe-ad. This helps a lot with code quality and makes the project more robust.

@moe-ad
Copy link
Contributor Author

moe-ad commented Dec 11, 2024

Thank you too @jorgepiloto .

plugin_path = examples.download_gltf_plugin()
folder_root = os.path.join(os.getcwd().rsplit("pydpf-core", 1)[0], "pydpf-core")
plugin_path = Path(examples.download_gltf_plugin())
folder_root = Path(__file__).parent.parent.parent
Copy link
Member

Choose a reason for hiding this comment

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

This line is the one making the CI/CD to fail. I think the problem is that, this is converted to a notebook by Sphinx gallery and thus, the variable __file__ is no longer present, @moe-ad

@moe-ad moe-ad force-pushed the maint/ruff-rule-migration branch from 7449aff to f4c136b Compare December 11, 2024 14:47
@moe-ad moe-ad merged commit 03f5b3b into master Dec 11, 2024
45 checks passed
@moe-ad moe-ad deleted the maint/ruff-rule-migration branch December 11, 2024 15:21
@moe-ad moe-ad self-assigned this Dec 13, 2024
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