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

Also allow_bson in job serialization #376

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

mcgalcode
Copy link
Contributor

@mcgalcode mcgalcode commented Jul 22, 2023

Summary

An extension of #375. If we allow bson inputs to be serialized, then job serialization must also accommodate that (since job serialization involves serializing the function_args, i.e. inputs).

Checklist

Work-in-progress pull requests are encouraged, but please put [WIP] in the pull request
title.

Before a pull request can be merged, the following items must be checked:

  • Code is in the standard Python style.
    The easiest way to handle this is to run the following in the correct sequence on
    your local machine. Start with running black on your new code. This will
    automatically reformat your code to PEP8 conventions and removes most issues. Then run
    pycodestyle, followed by flake8.
  • Docstrings have been added in theNumpy docstring format.
    Run pydocstyle on your code.
  • Type annotations are highly encouraged. Run mypy to
    type check your code.
  • Tests have been added for any new functionality or bug fixes.
  • All linting and tests pass.

Note that the CI system will run all the above checks. But it will be much more
efficient if you already fix most errors prior to submitting the PR. It is highly
recommended that you use the pre-commit hook provided in the repository. Simply
cp pre-commit .git/hooks and a check will be run prior to allowing commits.

@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #376 (409861b) into main (d3fa86f) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #376   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files          19       19           
  Lines        1439     1439           
  Branches      364      364           
=======================================
  Hits         1437     1437           
  Misses          1        1           
  Partials        1        1           
Impacted Files Coverage Δ
src/jobflow/core/job.py 100.00% <100.00%> (ø)

@utf
Copy link
Member

utf commented Jul 27, 2023

Great, thank you!

@utf utf merged commit c626e16 into materialsproject:main Jul 27, 2023
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