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

REFACTOR: Improve code quality and test coverage #5642

Merged
merged 8 commits into from
Jan 10, 2025

Conversation

SMoraisAnsys
Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys commented Jan 9, 2025

Description

Changes to improve the code base:
- using pathlib instead of os (we need to start somewhere);
- avoid assert on core methods and only use it for test methods;
- log instead of pass in try: except:;
- general code refactoring.

Issue linked

Associated to #5504

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

Changes include:
- using pathlib instead of os;
- avoid assert on non test method;
- log instead of pass in try: except:;
- general code refactoring.
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@github-actions github-actions bot added the testing Anything related to testing label Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 75.86207% with 7 lines in your changes missing coverage. Please review.

Project coverage is 85.25%. Comparing base (ccd0937) to head (8607b86).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5642      +/-   ##
==========================================
+ Coverage   84.00%   85.25%   +1.25%     
==========================================
  Files         152      152              
  Lines       61008    61012       +4     
==========================================
+ Hits        51247    52015     +768     
+ Misses       9761     8997     -764     

Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

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

LGTM

@Samuelopez-ansys Samuelopez-ansys merged commit a5cbc5e into main Jan 10, 2025
41 of 42 checks passed
@Samuelopez-ansys Samuelopez-ansys deleted the refactor/improve-code-quality branch January 10, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants