Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 46ea72641f | |||
| 62929dd48a | |||
| 25e319d898 |
@@ -8,3 +8,4 @@
|
|||||||
| `tqdm_utils` | tqdm |
|
| `tqdm_utils` | tqdm |
|
||||||
| `downloader` | tqdm, requests |
|
| `downloader` | tqdm, requests |
|
||||||
| `scientific_utils` | numpy, numba, matplotlib |
|
| `scientific_utils` | numpy, numba, matplotlib |
|
||||||
|
| `git_utils` | dateutil |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = "1.0.19"
|
__version__ = "1.0.22"
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
from typing import NamedTuple
|
from typing import NamedTuple
|
||||||
|
|
||||||
import dateutil
|
import dateutil.parser
|
||||||
|
|
||||||
|
|
||||||
class ExtractedCommit(NamedTuple):
|
class ExtractedCommit(NamedTuple):
|
||||||
@@ -19,7 +19,7 @@ class ExtractedCommit(NamedTuple):
|
|||||||
return dateutil.parser.isoparse(self.time)
|
return dateutil.parser.isoparse(self.time)
|
||||||
|
|
||||||
|
|
||||||
def git_log(path: Path, fail_silently: False) -> list[ExtractedCommit]:
|
def git_log(path: Path, fail_silently: bool = False) -> list[ExtractedCommit]:
|
||||||
"""
|
"""
|
||||||
Call and parse git log. This function requires that git>=2.37.1 is installed on your system.
|
Call and parse git log. This function requires that git>=2.37.1 is installed on your system.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user