Skip to content

Conversation

@PythonFZ
Copy link
Member

@PythonFZ PythonFZ commented Jun 23, 2025

Summary by CodeRabbit

  • Documentation

    • Added a comprehensive JOSS-style paper detailing workflows, examples, and feature overview.
    • Expanded the bibliography with multiple new references across chemistry and materials science.
    • Included a figure and code snippets to illustrate typical usage.
  • Chores

    • Disabled the mdformat pre-commit hook; kept code formatting via Ruff.
    • Updated spell-check configuration to ignore specific words and file types.
    • Added ignore rules for generated artifacts and common paper assets.
    • Introduced a Docker-based script to build the paper reproducibly.

@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2025

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
Copy link
Contributor

coderabbitai bot commented Aug 11, 2025

Walkthrough

This PR updates tooling configs, adds a paper manuscript and bibliography, introduces a Docker-based paper build script, and expands ignore rules. No code or public API changes were made.

Changes

Cohort / File(s) Change summary
Pre-commit tooling
.pre-commit-config.yaml
Commented out the mdformat hook, effectively disabling it. Ruff-format remains.
Paper assets and build
paper/paper.md, paper/bibliography.bib, paper/build.sh, paper/.gitignore
Added JOSS-style paper with usage examples; appended 16 BibTeX entries; introduced Docker wrapper script to build the paper; ignored jats/ and *.xyz, *.pdf, *.ipynb, *.png.
Project tooling config
pyproject.toml
Updated Codespell: added ignore word “basf” and expanded skip to include *.svg and paper/bibliography.bib.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

I thump my paws, a scholar bun,
New refs now sparkle, one by one.
A Docker carrot builds the tome,
While configs tidy up our home.
In paper fields I leap with glee—
Cite, compile, and sip my tea. 🐇📚

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • 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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 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
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.

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.

3 participants