Format
invoke_tasklib.format ¶
Code and docstring formatting tasks.
Naming convention: check_<target> tasks are read-only (they fail
without modifying files); fix_<target> tasks modify files in place.
invoke_tasklib.format.check_docstrings ¶
check_docstrings(c: Context) -> None
Check docstring formatting with docformatter without modifying files.
invoke_tasklib.format.check_python ¶
check_python(c: Context) -> None
Check code format with ruff without modifying files.
invoke_tasklib.format.check_shell ¶
check_shell(c: Context) -> None
Check shell scripts with shellcheck.
invoke_tasklib.format.fix_docstrings ¶
fix_docstrings(c: Context) -> None
Format docstrings in source code with docformatter.
Note
This modifies files in place. Ensure your work is committed before running this task.
invoke_tasklib.format.fix_python ¶
fix_python(c: Context) -> None
Format code in place with ruff.
Note
This modifies files in place. Ensure your work is committed before running this task.
invoke_tasklib.format.fix_shell ¶
fix_shell(c: Context) -> None
Format shell scripts in place with shfmt.
Note
This modifies files in place. Ensure your work is committed before running this task.