path_derive_precommit_exec: Derive the path to the pre-commit executable

View source: R/exec.R

path_derive_precommit_execR Documentation

Derive the path to the pre-commit executable

Description

Returns "" if search was not successful, the path otherwise.

Usage

path_derive_precommit_exec()

Heuristic

  • First check if there is an executable on the ⁠$PATH⁠ using path_derive_precommit_exec_path()

  • Search os dependent for other possible locations for common installation methods.

  • If not, check if we can find one in a conda environment with path_derive_precommit_exec_conda(). Do this last as it's the slowest.


precommit documentation built on May 29, 2024, 3:08 a.m.