util
util
Utility functions for the package
Functions
date_today |
Returns the current date in ISO8601-compliant format (YYYY-MM-DD). |
path_resolve |
Resolves the given filepath to an absolute path. |
precommit_run |
Run pre-commit run with the specified arguments. |
date_today
Returns the current date in ISO8601-compliant format (YYYY-MM-DD).
Returns
str |
|
The current date as a string in the format YYYY-MM-DD. |
path_resolve
util.path_resolve(filepath)
Resolves the given filepath to an absolute path.
Parameters
filepath |
str |
The path to be resolved. |
required |
Returns
|
|
pathlib.Path: The resolved absolute path. |
precommit_run
Run pre-commit run
with the specified arguments.
Parameters
args |
str |
The arguments to pass to the pre-commit command. |
required |
Returns
|
|
subprocess.CompletedProcess: The result of the shell command execution. |