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

feat: handle list of filenames in absolute_path and file_mtime #89

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

lars-reimann
Copy link
Member

Closes #88

Summary of Changes

file_mtime and absolute_path can now work with a list of strings as well as a single string. This is needed for function like ImageList.from_files that accept multiple paths.

For now, order matters. Specifying the same paths in a different order leads to a different memoization key.

@lars-reimann lars-reimann requested a review from a team as a code owner April 17, 2024 20:31
@lars-reimann lars-reimann changed the title feat: handle a list of strings in absolute_path and file_mtime feat: handle a list of filenames in absolute_path and file_mtime Apr 17, 2024
@lars-reimann lars-reimann changed the title feat: handle a list of filenames in absolute_path and file_mtime feat: handle list of filenames in absolute_path and file_mtime Apr 17, 2024
Copy link

github-actions bot commented Apr 17, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 2 0 0 0.68s
✅ PYTHON mypy 2 0 2.37s
✅ PYTHON ruff 2 0 0 0.03s
✅ REPOSITORY git_diff yes no 0.02s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@lars-reimann lars-reimann force-pushed the mtime-for-list-of-files branch from 14f2223 to 58f90b6 Compare April 17, 2024 20:37
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d780822) to head (58f90b6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #89   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines          721       733   +12     
=========================================
+ Hits           721       733   +12     

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

@WinPlay02 WinPlay02 merged commit 50d831f into main Apr 17, 2024
8 checks passed
@WinPlay02 WinPlay02 deleted the mtime-for-list-of-files branch April 17, 2024 23:06
lars-reimann pushed a commit that referenced this pull request Apr 22, 2024
## [0.12.0](v0.11.0...v0.12.0) (2024-04-22)

### Features

* handle list of filenames in `absolute_path` and `file_mtime` ([#89](#89)) ([50d831f](50d831f)), closes [#88](#88)
* prepare and pool processes ([#87](#87)) ([e5e7011](e5e7011)), closes [#85](#85)
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file_mtime should handle list of file names, too
2 participants