Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
12 lines
234 B
Bash
Executable File
12 lines
234 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#/ Usage: bin/fmt
|
|
#/ Description: Formats and lints the code
|
|
source bin/helpers/_utils.sh
|
|
set_source_and_root_dir
|
|
ensure_virtual_env
|
|
|
|
if [[ "$1" == "--check" ]]; then
|
|
ruff format --check .
|
|
else
|
|
ruff format .
|
|
fi |