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

Adapting ruff #563

Merged
merged 12 commits into from
Feb 5, 2024
Merged

Adapting ruff #563

merged 12 commits into from
Feb 5, 2024

Conversation

DaniBodor
Copy link
Collaborator

@DaniBodor DaniBodor commented Jan 31, 2024

Activated and fixed more settings.

@gcroci2 , I think most of these you can just glance over, but can you please check what I did in 35248b9. This was where I dealt with print statements in the code base, either by:

  • sending to log instead
  • generating a warning
  • left as is (suppress the lint rule)
  • removed the print statement with no replacement.
    Can you check whether you agree with what I did where.

@DaniBodor DaniBodor changed the base branch from main to dev January 31, 2024 22:26
@DaniBodor DaniBodor requested a review from gcroci2 January 31, 2024 22:29
was defaulted to prettier, but it doesn't work for shell scripts
@DaniBodor DaniBodor force-pushed the 541b_ruff_changes_dbodor branch 3 times, most recently from 3f978f3 to 146bfa7 Compare February 3, 2024 16:08
@DaniBodor DaniBodor changed the title Additional ruff settings Adapting ruff stuff Feb 3, 2024
@DaniBodor DaniBodor changed the title Adapting ruff stuff Adapting ruff Feb 3, 2024
@DaniBodor DaniBodor force-pushed the 541b_ruff_changes_dbodor branch from 146bfa7 to 38334ad Compare February 3, 2024 16:13
individually suppressed those that are unwanted/unrealistic instead of acvtivating each module explicitly
also imporove some annotations in pyproject.toml
removed or sent to logger or to warning (or suppressed)
the full ruff documentation can be accessed by hovering over the suppressed linting rule
@DaniBodor DaniBodor force-pushed the 541b_ruff_changes_dbodor branch from 38334ad to dfb0d74 Compare February 3, 2024 17:59
- Moved docstrings from __init__ to the class level instead
- Added missing docstrings or suppressed the call for them
- Did not activate missing docstring in public method because there are too many missing
- Deactivated missing docsstrings in tests
Copy link
Collaborator

@gcroci2 gcroci2 left a comment

Choose a reason for hiding this comment

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

Nice edits, now the toml file is much shorter and the code seems nicer and nicer :D I went through commit 35248b9 and all seems good to me

@DaniBodor DaniBodor marked this pull request as ready for review February 5, 2024 11:06
@DaniBodor DaniBodor force-pushed the 541b_ruff_changes_dbodor branch from dfb0d74 to 3cf9dd5 Compare February 5, 2024 11:12
@DaniBodor DaniBodor changed the base branch from dev to main February 5, 2024 11:21
@DaniBodor DaniBodor changed the base branch from main to dev February 5, 2024 11:21
@DaniBodor DaniBodor changed the base branch from dev to main February 5, 2024 13:27
@DaniBodor DaniBodor merged commit 54107d5 into main Feb 5, 2024
4 of 5 checks passed
@DaniBodor DaniBodor deleted the 541b_ruff_changes_dbodor branch February 5, 2024 13:27
@DaniBodor DaniBodor restored the 541b_ruff_changes_dbodor branch February 5, 2024 13:37
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