Skip to content

JOSS manuscript - #48

Merged
PythonFZ merged 15 commits into
mainfrom
joss
Dec 3, 2025
Merged

JOSS manuscript#48
PythonFZ merged 15 commits into
mainfrom
joss

Conversation

@PythonFZ

@PythonFZ PythonFZ commented Jun 23, 2025

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation

    • Added a comprehensive JOSS-style paper with examples, figure, and usage workflows.
    • Expanded the bibliography with numerous new references across chemistry and materials science.
  • Chores

    • Disabled the mdformat pre-commit hook while keeping Ruff-based formatting active.
    • Updated spell-check configuration to ignore specific words and file types.
    • Added ignore rules for generated paper artifacts.
    • Added a Docker-based script to build the paper reproducibly.

@codecov-commenter

codecov-commenter commented Jun 23, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.33%. Comparing base (ba9c6d0) to head (6a3bae0).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   97.33%   97.33%           
=======================================
  Files          25       25           
  Lines        1723     1723           
=======================================
  Hits         1677     1677           
  Misses         46       46           

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

@coderabbitai

coderabbitai Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Adds a JOSS-style paper and bibliography, a Docker-based paper build script, updates project/tooling configs and ignore rules, and disables the mdformat pre-commit hook. No code or public API changes.

Changes

Cohort / File(s) Change summary
Pre-commit tooling
.pre-commit-config.yaml
Commented out the mdformat hook (disabled); ruff-format hook left active.
Paper manuscript & refs
paper/paper.md, paper/bibliography.bib
Added JOSS-style manuscript (paper.md) and appended 16 BibTeX entries to bibliography.bib.
Paper build & ignores
paper/build.sh, paper/.gitignore
Added paper/build.sh (Docker wrapper invoking openjournals/inara) and expanded paper/.gitignore to ignore jats/ and files *.xyz, *.pdf, *.ipynb, *.png.
Project tooling config
pyproject.toml
Updated codespell settings: added basf to ignore-words-list and expanded skip patterns to include *.svg and paper/bibliography.bib (plus existing entries).

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Script as paper/build.sh
    participant Docker as Docker Engine
    participant Image as openjournals/inara

    Dev->>Script: run ./paper/build.sh
    Script->>Docker: docker run --rm ... --volume $PWD:/data --env JOURNAL=joss openjournals/inara
    Docker->>Image: start container (runs build inside /data)
    Image-->>Docker: build outputs (paper, jats, logs)
    Docker-->>Script: container exits (files written to host /data)
    Script-->>Dev: exit status / artifacts available
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Points to check during review:

  • .pre-commit-config.yaml — ensure mdformat was intentionally commented and formatting/hook sequencing remains correct.
  • paper/paper.md — review content for accuracy and required metadata for JOSS submission.
  • paper/bibliography.bib — validate BibTeX entry keys/fields and encoding (diacritics).
  • paper/build.sh — check Docker invocation flags (platform, user mapping, volume mount, JOURNAL env).
  • pyproject.toml — confirm codespell ignore/skip entries are correctly formatted.

Poem

I thump my paws and hop about,
New refs like carrots, pulled from out.
A Docker burrow builds the sheet,
Configs aligned — the workflow neat.
I nibble docs and dance with glee, paper done, hooray for me! 🐇📜

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'JOSS manuscript' is vague and generic, failing to convey what specific changes were made to enable or add JOSS manuscript support. Consider a more descriptive title such as 'Add JOSS manuscript and build configuration' or 'Add paper.md and Docker build setup for JOSS submission' to clearly indicate the main changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch joss

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
.pre-commit-config.yaml (1)

36-40: Optional: Re-enable mdformat only for paper/ with frontmatter support

If formatting drift becomes a concern, you can scope mdformat to paper/*.md and preserve YAML front matter.

Apply this diff to re-enable with safe scope:

-  # - repo: https://github.com/executablebooks/mdformat
-  #   rev: 0.7.22
-  #   hooks:
-  #   - id: mdformat
-  #     args: ["--wrap=80"]
+  - repo: https://github.com/executablebooks/mdformat
+    rev: 0.7.22
+    hooks:
+    - id: mdformat
+      additional_dependencies: ["mdformat-gfm", "mdformat-frontmatter"]
+      files: ^paper/.*\.md$
+      args: ["--wrap=80"]
paper/paper.md (3)

83-83: Typo: double period

Single period is sufficient.

-This bidirectional conversion capability allows the use of RDKit's chemical analysis tools together with ASE for MLIP-based simulations..
+This bidirectional conversion capability allows the use of RDKit's chemical analysis tools together with ASE for MLIP-based simulations.

89-89: Unify code-fence language identifier

Use “python” consistently for syntax highlighting.

-```py
+```python

39-41: Style: tighten “not only … but also …” phrasing

Optional clarity edit.

-This simplification not only accelerates research but also supports the setup of more complex and chemically diverse simulation scenarios.
+This simplification accelerates research and supports the setup of more complex, chemically diverse simulation scenarios.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba9c6d0 and 6a3bae0.

⛔ Files ignored due to path filters (1)
  • paper/zndraw_rdkit.svg is excluded by !**/*.svg
📒 Files selected for processing (6)
  • .pre-commit-config.yaml (1 hunks)
  • paper/.gitignore (1 hunks)
  • paper/bibliography.bib (1 hunks)
  • paper/build.sh (1 hunks)
  • paper/paper.md (1 hunks)
  • pyproject.toml (1 hunks)
🧰 Additional context used
🪛 LanguageTool
paper/paper.md

[style] ~40-~40: Opting for a less wordy alternative here may improve the clarity of your writing.
Context: ...f simulation cells. This simplification not only accelerates research but also supports the setup of more complex and chemicall...

(NOT_ONLY_ALSO)

🪛 Shellcheck (0.10.0)
paper/build.sh

[warning] 3-3: Quote this to prevent word splitting.

(SC2046)


[warning] 3-3: Quote this to prevent word splitting.

(SC2046)

🔇 Additional comments (4)
paper/.gitignore (1)

1-5: LGTM – appropriate ignores for paper artifacts

The rules cover common build outputs (JATS, PDFs, notebooks, PNGs). No issues.

pyproject.toml (1)

51-52: LGTM – codespell config tuned to reduce false positives

Adding “basf” and skipping SVGs and the BibTeX file is pragmatic for this PR.

paper/bibliography.bib (1)

1-212: Bibliography looks consistent and complete

References cover the cited tooling and concepts; field usage and keys are consistent. No changes required.

paper/paper.md (1)

49-49: Figure asset confirmed present
The file paper/zndraw_rdkit.svg was found in the repository under paper/, so no further action is required.

Comment thread paper/build.sh
Comment on lines +1 to +3
#!/bin/bash

docker run --rm --volume $PWD:/data --user $(id -u):$(id -g) --platform=linux/amd64 --env JOURNAL=joss openjournals/inara

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Harden the build script (quote expansions, fail-fast, ensure correct CWD, check docker)

Quoting avoids word-splitting; setting safety flags and cd’ing to the script directory makes the build reliable from any location.

Apply:

-#!/bin/bash
-
-docker run --rm  --volume $PWD:/data --user $(id -u):$(id -g) --platform=linux/amd64 --env JOURNAL=joss openjournals/inara
+#!/bin/bash
+set -Eeuo pipefail
+
+# Run from the paper directory so /data matches the manuscript location.
+cd "$(dirname "$0")"
+
+# Ensure docker is available.
+if ! command -v docker >/dev/null 2>&1; then
+  echo "docker is required but not found in PATH." >&2
+  exit 127
+fi
+
+# Build the JOSS paper using the Inara container.
+docker run --rm \
+  --pull=always \
+  --volume "$PWD":/data \
+  --user "$(id -u)":"$(id -g)" \
+  --platform=linux/amd64 \
+  --env JOURNAL=joss \
+  openjournals/inara
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#!/bin/bash
docker run --rm --volume $PWD:/data --user $(id -u):$(id -g) --platform=linux/amd64 --env JOURNAL=joss openjournals/inara
#!/bin/bash
set -Eeuo pipefail
# Run from the paper directory so /data matches the manuscript location.
cd "$(dirname "$0")"
# Ensure docker is available.
if ! command -v docker >/dev/null 2>&1; then
echo "docker is required but not found in PATH." >&2
exit 127
fi
# Build the JOSS paper using the Inara container.
docker run --rm \
--pull=always \
--volume "$PWD":/data \
--user "$(id -u)":"$(id -g)" \
--platform=linux/amd64 \
--env JOURNAL=joss \
openjournals/inara
🧰 Tools
🪛 Shellcheck (0.10.0)

[warning] 3-3: Quote this to prevent word splitting.

(SC2046)


[warning] 3-3: Quote this to prevent word splitting.

(SC2046)

🤖 Prompt for AI Agents
In paper/build.sh around lines 1 to 3, the script lacks safety flags, unquoted
expansions, no cwd enforcement, and no check for docker availability; update the
script to: enable fail-fast and strict mode (set -euo pipefail), change to the
script directory (cd "$(dirname "$0")"), verify docker is installed and
executable before proceeding (exit with a clear error if not), and quote all
expansions (e.g. use --volume "$PWD":/data and --user "$(id -u):$(id -g)") so
paths and values with spaces are handled correctly.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
paper/paper.md (1)

26-26: Optional grammar and hyphenation refinements.

Static analysis flagged three minor style opportunities:

  • Line 26: "high throughput simulations" → "high-throughput simulations" (compound adjective requires hyphenation)
  • Line 35: "machine-learning driven bond order" → "machine-learning-driven bond order" (consistent hyphenation in compound adjectives)
  • Line 44: "This simplification not only accelerates research but also supports" could be simplified to "This simplification accelerates research and supports" (reduces verbosity without sacrificing clarity)

These are stylistic improvements and not required for acceptance; apply at your discretion.

Also applies to: 35-35, 44-44

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6a3bae0 and 53ec268.

📒 Files selected for processing (4)
  • .pre-commit-config.yaml (1 hunks)
  • paper/bibliography.bib (1 hunks)
  • paper/paper.md (1 hunks)
  • pyproject.toml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • paper/bibliography.bib
  • .pre-commit-config.yaml
🧰 Additional context used
🪛 LanguageTool
paper/paper.md

[grammar] ~26-~26: Use a hyphen to join words.
Context: ... run on much larger systems, making high throughput simulations of more complex s...

(QB_NEW_EN_HYPHEN)


[grammar] ~35-~35: Use a hyphen to join words.
Context: ...ons or integrating with machine-learning driven bond order predictions. # State...

(QB_NEW_EN_HYPHEN)


[style] ~44-~44: Opting for a less wordy alternative here may improve the clarity of your writing.
Context: ...f simulation cells. This simplification not only accelerates research but also supports the setup of more complex and chemicall...

(NOT_ONLY_ALSO)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: pytest (3.10, windows-latest)
  • GitHub Check: Build wheels on windows-11-arm
  • GitHub Check: Build wheels on windows-latest
  • GitHub Check: Build wheels on ubuntu-latest
  • GitHub Check: Build wheels on ubuntu-24.04-arm
  • GitHub Check: pytest (3.12, windows-latest)
  • GitHub Check: pytest (3.13, macos-latest)
🔇 Additional comments (2)
pyproject.toml (1)

67-68: Codespell configuration appropriately updated for paper tooling.

The additions to ignore-words-list and skip patterns are well-justified: "basf" prevents false positives from the BASF organization (referenced in Related software), while the skip patterns accommodate SVG figures, the new bibliography file, and notebook artifacts. This prevents Codespell from flagging abbreviations and specialized terms common in academic bibliographies and illustrations.

paper/paper.md (1)

1-128: Paper structure and technical content are well-executed.

The JOSS paper comprehensively documents molify's problem space, features, and role within the materials science/MLIP community. The metadata, sections (Summary, Statement of Need, Features, Acknowledgements, Related Software), code examples, and bibliography references follow standard conventions. The comparison with OpenBabel (lines 126–128) effectively distinguishes molify's Python-native, in-memory workflow focus from format-conversion-oriented tools.

@PythonFZ
PythonFZ merged commit 1489577 into main Dec 3, 2025
21 checks passed
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