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

lint: Configure ruff for this project and fix problems #57

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

BenjaminSchubert
Copy link
Owner

@BenjaminSchubert BenjaminSchubert commented Dec 30, 2023

Most notable are:

  • require boolean arguments to be passed as keywords

Otherwise it can't be quite confusing and ordering becomes less clear.
Overall this reduces errors

  • Ensure all imports used for typechecking are guarded by TYPE_CHECKING

Copy link

codecov bot commented Dec 30, 2023

Codecov Report

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

Comparison is base (8d60c5d) 87.64% compared to head (b7b9ae0) 87.54%.

Files Patch % Lines
src/dwas/_frontend.py 0.00% 2 Missing ⚠️
src/dwas/_steps/handlers.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
- Coverage   87.64%   87.54%   -0.10%     
==========================================
  Files          53       53              
  Lines        2331     2313      -18     
  Branches      298      296       -2     
==========================================
- Hits         2043     2025      -18     
  Misses        226      226              
  Partials       62       62              

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

@BenjaminSchubert BenjaminSchubert changed the title lint: Configure ruff to be quite strict on the project lint: Configure ruff for this project and fix problems Dec 30, 2023
Most notable are:

- require boolean arguments to be passed as keywords

Otherwise it can't be quite confusing and ordering becomes less clear.
Overall this reduces errors

- Ensure all imports used for typechecking are guarded by TYPE_CHECKING
@BenjaminSchubert BenjaminSchubert marked this pull request as ready for review December 30, 2023 18:55
@BenjaminSchubert BenjaminSchubert merged commit 638611f into main Dec 30, 2023
19 of 20 checks passed
@BenjaminSchubert BenjaminSchubert deleted the bschubert/lint-ruff branch December 30, 2023 18:55
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.

1 participant