Closed dulinhan closed 2 months ago
.git_archival.txt (10)
Near line 1: This sentence does not start with an uppercase letter. Context: node: $Format:%H$ node-date: $Format:%cI$ de... --- Near line 1: Possible spelling mistake found. Context: node: $Format:%H$ node-date: $Format:%cI$ describe-na... --- Near line 1: Possible spelling mistake found. Context: node: $Format:%H$ node-date: $Format:%cI$ describe-name: ... --- Near line 2: Possible spelling mistake found. Context: node: $Format:%H$ node-date: $Format:%cI$ describe-name: $Format:%(describe:... --- Near line 2: Possible spelling mistake found. Context: node: $Format:%H$ node-date: $Format:%cI$ describe-name: $Format:%(describe:tags=... --- Near line 3: Possible spelling mistake found. Context: ... node-date: $Format:%cI$ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ re... --- Near line 3: Put a space after the comma. Context: ...cribe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ ref-names: $Format:%D$ --- Near line 3: A punctuation mark might be missing here. Context: ...mat:%(describe:tags=true,match=*[0-9]*)$ ref-names: $Format:%D$ --- Near line 4: Possible spelling mistake found. Context: ...be:tags=true,match=*[0-9]*)$ ref-names: $Format:%D$ --- Near line 4: Possible spelling mistake found. Context: ...true,match=*[0-9]*)$ ref-names: $Format:%D$
.gitattributes (1)
`1-1`: The configuration for `.git_archival.txt` using `export-subst` is correctly implemented..git_archival.txt (1)
`1-4`: The Git placeholders in `.git_archival.txt` are correctly used for export substitutions..github/workflows/test_import.yml (2)
`11-12`: Updated GitHub actions to newer versions, which is a good practice for maintaining compatibility and security. --- `16-17`: The command `python -m uv pip install --system .` seems incorrect. Please verify if `uv` is intended to be used here or if it's a typo.dpdata/pymatgen/structure.py (1)
`9-24`: The function `from_system_data` correctly and efficiently converts a `pymatgen` structure to a dictionary format. Good use of Pythonic practices and numpy for data handling.tests/test_to_pymatgen.py (2)
`8-8`: Updated import statement to correctly import `Structure` from `pymatgen.core`. --- `22-22`: Correct use of named arguments in the `to` method enhances readability and ensures the correct parameters are used.tests/test_from_pymatgen.py (2)
`8-8`: Correct import statement for `Structure` from `pymatgen.core`. --- `18-22`: Proper initialization of `dpdata.System` instances from a `pymatgen` structure and a file in the test setup method..pre-commit-config.yaml (2)
`5-5`: Updated version of `pre-commit/pre-commit-hooks` to `v4.6.0`, which likely includes improvements and bug fixes. --- `22-22`: Updated version of `astral-sh/ruff-pre-commit` to `v0.4.1`, enhancing the linting capabilities..github/workflows/test.yml (2)
`15-18`: Updated GitHub actions to newer versions, ensuring up-to-date features and security improvements. --- `21-23`: Please verify the usage of `uv` in the installation command. If it is an intended tool or alias, ensure it is documented or known among the team.pyproject.toml (1)
`2-2`: Updated `setuptools_scm[toml]` version from `6.2` to `7`. Ensure compatibility with other project dependencies.dpdata/plugins/pymatgen.py (1)
`10-25`: Added method `from_system` to convert `pymatgen.core.Structure` to a dictionary. Documentation is clear and concise. Ensure the `dpdata.pymatgen.structure.from_system_data(structure)` function is correctly implemented and efficient.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.67%. Comparing base (
95241b3
) to head (1eb3a99
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Add function description on
system.py/check_type_map