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

Convert almost all classes to dataclasses #184

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Convert almost all classes to dataclasses #184

merged 1 commit into from
Nov 20, 2023

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Nov 13, 2023

It makes the code a little bit more efficient in some places, but it also provides us with a PR to release on.

@jwodder jwodder added release Create a release when this pr is merged internal Changes only affect the internal API labels Nov 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7743581) 64.49% compared to head (cf9f502) 65.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
+ Coverage   64.49%   65.00%   +0.50%     
==========================================
  Files           1        1              
  Lines        1611     1620       +9     
  Branches      374      402      +28     
==========================================
+ Hits         1039     1053      +14     
+ Misses        470      466       -4     
+ Partials      102      101       -1     
Files Coverage Δ
src/datalad_installer.py 65.00% <100.00%> (+0.50%) ⬆️

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

#: method
#: A list of files to which to write ``PATH`` modifications and related
#: shell commands
env_write_files: list[Path] = field(default_factory=list)
Copy link
Member

Choose a reason for hiding this comment

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

how they will become Path here if str would be provided? (I just don't see any relevant changes in this diff)

Copy link
Member Author

Choose a reason for hiding this comment

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

DataladInstaller is never actually initialized with an explicit env_write_files argument, so it doesn't matter. (I guess it mattered in some older version of the script?)

@jwodder
Copy link
Member Author

jwodder commented Nov 20, 2023

@yarikoptic Ping.

@yarikoptic yarikoptic merged commit bb92e34 into master Nov 20, 2023
30 checks passed
@yarikoptic yarikoptic deleted the dataclasses branch November 20, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants