This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import tomllib | |
| from pathlib import Path | |
| def get_submodule_commit_hash(path: Path) -> str: | |
| result = subprocess.run( | |
| ["git", "rev-parse", "HEAD"], | |
| cwd=str(path), | |
| stdout=subprocess.PIPE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r""" | |
| requires: | |
| pydantic==1.* | |
| numpy==1.* | |
| scipy==1.* | |
| """ | |
| from abc import ABC, abstractmethod | |
| import math |