SYMBOL INDEX (2219 symbols across 149 files) FILE: crates/prek-consts/src/env_vars.rs type EnvVars (line 5) | pub struct EnvVars; constant PATH (line 8) | pub const PATH: &'static str = "PATH"; constant HOME (line 9) | pub const HOME: &'static str = "HOME"; constant CI (line 10) | pub const CI: &'static str = "CI"; constant LC_ALL (line 11) | pub const LC_ALL: &'static str = "LC_ALL"; constant GIT_DIR (line 14) | pub const GIT_DIR: &'static str = "GIT_DIR"; constant GIT_WORK_TREE (line 15) | pub const GIT_WORK_TREE: &'static str = "GIT_WORK_TREE"; constant GIT_TERMINAL_PROMPT (line 16) | pub const GIT_TERMINAL_PROMPT: &'static str = "GIT_TERMINAL_PROMPT"; constant SKIP (line 18) | pub const SKIP: &'static str = "SKIP"; constant PREK_HOME (line 21) | pub const PREK_HOME: &'static str = "PREK_HOME"; constant PREK_COLOR (line 22) | pub const PREK_COLOR: &'static str = "PREK_COLOR"; constant PREK_SKIP (line 23) | pub const PREK_SKIP: &'static str = "PREK_SKIP"; constant PREK_ALLOW_NO_CONFIG (line 24) | pub const PREK_ALLOW_NO_CONFIG: &'static str = "PREK_ALLOW_NO_CONFIG"; constant PREK_NO_CONCURRENCY (line 25) | pub const PREK_NO_CONCURRENCY: &'static str = "PREK_NO_CONCURRENCY"; constant PREK_MAX_CONCURRENCY (line 26) | pub const PREK_MAX_CONCURRENCY: &'static str = "PREK_MAX_CONCURRENCY"; constant PREK_NO_FAST_PATH (line 27) | pub const PREK_NO_FAST_PATH: &'static str = "PREK_NO_FAST_PATH"; constant PREK_UV_SOURCE (line 28) | pub const PREK_UV_SOURCE: &'static str = "PREK_UV_SOURCE"; constant PREK_NATIVE_TLS (line 29) | pub const PREK_NATIVE_TLS: &'static str = "PREK_NATIVE_TLS"; constant SSL_CERT_FILE (line 30) | pub const SSL_CERT_FILE: &'static str = "SSL_CERT_FILE"; constant SSL_CERT_DIR (line 31) | pub const SSL_CERT_DIR: &'static str = "SSL_CERT_DIR"; constant PREK_CONTAINER_RUNTIME (line 32) | pub const PREK_CONTAINER_RUNTIME: &'static str = "PREK_CONTAINER_RUNTI... constant PREK_QUIET (line 33) | pub const PREK_QUIET: &'static str = "PREK_QUIET"; constant PREK_LOG_TRUNCATE_LIMIT (line 34) | pub const PREK_LOG_TRUNCATE_LIMIT: &'static str = "PREK_LOG_TRUNCATE_L... constant PREK_INTERNAL__TEST_DIR (line 37) | pub const PREK_INTERNAL__TEST_DIR: &'static str = "PREK_INTERNAL__TEST... constant PREK_INTERNAL__SORT_FILENAMES (line 38) | pub const PREK_INTERNAL__SORT_FILENAMES: &'static str = "PREK_INTERNAL... constant PREK_INTERNAL__SKIP_POST_CHECKOUT (line 39) | pub const PREK_INTERNAL__SKIP_POST_CHECKOUT: &'static str = "PREK_INTE... constant PREK_INTERNAL__RUN_ORIGINAL_PRE_COMMIT (line 40) | pub const PREK_INTERNAL__RUN_ORIGINAL_PRE_COMMIT: &'static str = constant PREK_INTERNAL__BUN_BINARY_NAME (line 42) | pub const PREK_INTERNAL__BUN_BINARY_NAME: &'static str = "PREK_INTERNA... constant PREK_INTERNAL__DENO_BINARY_NAME (line 43) | pub const PREK_INTERNAL__DENO_BINARY_NAME: &'static str = "PREK_INTERN... constant PREK_INTERNAL__GO_BINARY_NAME (line 44) | pub const PREK_INTERNAL__GO_BINARY_NAME: &'static str = "PREK_INTERNAL... constant PREK_INTERNAL__NODE_BINARY_NAME (line 45) | pub const PREK_INTERNAL__NODE_BINARY_NAME: &'static str = "PREK_INTERN... constant PREK_INTERNAL__RUSTUP_BINARY_NAME (line 46) | pub const PREK_INTERNAL__RUSTUP_BINARY_NAME: &'static str = "PREK_INTE... constant PREK_INTERNAL__SKIP_CABAL_UPDATE (line 47) | pub const PREK_INTERNAL__SKIP_CABAL_UPDATE: &'static str = "PREK_INTER... constant PREK_RUNNING_LEGACY (line 48) | pub const PREK_RUNNING_LEGACY: &'static str = "PREK_RUNNING_LEGACY"; constant PREK_GENERATE (line 49) | pub const PREK_GENERATE: &'static str = "PREK_GENERATE"; constant VIRTUAL_ENV (line 52) | pub const VIRTUAL_ENV: &'static str = "VIRTUAL_ENV"; constant PYTHONHOME (line 53) | pub const PYTHONHOME: &'static str = "PYTHONHOME"; constant UV_PYTHON (line 54) | pub const UV_PYTHON: &'static str = "UV_PYTHON"; constant UV_SYSTEM_PYTHON (line 55) | pub const UV_SYSTEM_PYTHON: &'static str = "UV_SYSTEM_PYTHON"; constant UV_CACHE_DIR (line 56) | pub const UV_CACHE_DIR: &'static str = "UV_CACHE_DIR"; constant UV_PYTHON_INSTALL_DIR (line 57) | pub const UV_PYTHON_INSTALL_DIR: &'static str = "UV_PYTHON_INSTALL_DIR"; constant UV_MANAGED_PYTHON (line 58) | pub const UV_MANAGED_PYTHON: &'static str = "UV_MANAGED_PYTHON"; constant UV_NO_MANAGED_PYTHON (line 59) | pub const UV_NO_MANAGED_PYTHON: &'static str = "UV_NO_MANAGED_PYTHON"; constant NPM_CONFIG_USERCONFIG (line 62) | pub const NPM_CONFIG_USERCONFIG: &'static str = "NPM_CONFIG_USERCONFIG"; constant NPM_CONFIG_PREFIX (line 63) | pub const NPM_CONFIG_PREFIX: &'static str = "NPM_CONFIG_PREFIX"; constant NODE_PATH (line 64) | pub const NODE_PATH: &'static str = "NODE_PATH"; constant BUN_INSTALL (line 67) | pub const BUN_INSTALL: &'static str = "BUN_INSTALL"; constant DENO_DIR (line 70) | pub const DENO_DIR: &'static str = "DENO_DIR"; constant DENO_NO_UPDATE_CHECK (line 71) | pub const DENO_NO_UPDATE_CHECK: &'static str = "DENO_NO_UPDATE_CHECK"; constant GITHUB_TOKEN (line 74) | pub const GITHUB_TOKEN: &'static str = "GITHUB_TOKEN"; constant GOTOOLCHAIN (line 77) | pub const GOTOOLCHAIN: &'static str = "GOTOOLCHAIN"; constant GOROOT (line 78) | pub const GOROOT: &'static str = "GOROOT"; constant GOPATH (line 79) | pub const GOPATH: &'static str = "GOPATH"; constant GOBIN (line 80) | pub const GOBIN: &'static str = "GOBIN"; constant GOFLAGS (line 81) | pub const GOFLAGS: &'static str = "GOFLAGS"; constant LUA_PATH (line 84) | pub const LUA_PATH: &'static str = "LUA_PATH"; constant LUA_CPATH (line 85) | pub const LUA_CPATH: &'static str = "LUA_CPATH"; constant PREK_RUBY_MIRROR (line 88) | pub const PREK_RUBY_MIRROR: &'static str = "PREK_RUBY_MIRROR"; constant GEM_HOME (line 89) | pub const GEM_HOME: &'static str = "GEM_HOME"; constant GEM_PATH (line 90) | pub const GEM_PATH: &'static str = "GEM_PATH"; constant BUNDLE_IGNORE_CONFIG (line 91) | pub const BUNDLE_IGNORE_CONFIG: &'static str = "BUNDLE_IGNORE_CONFIG"; constant BUNDLE_GEMFILE (line 92) | pub const BUNDLE_GEMFILE: &'static str = "BUNDLE_GEMFILE"; constant RUSTUP_TOOLCHAIN (line 95) | pub const RUSTUP_TOOLCHAIN: &'static str = "RUSTUP_TOOLCHAIN"; constant RUSTUP_AUTO_INSTALL (line 96) | pub const RUSTUP_AUTO_INSTALL: &'static str = "RUSTUP_AUTO_INSTALL"; constant CARGO_HOME (line 97) | pub const CARGO_HOME: &'static str = "CARGO_HOME"; constant RUSTUP_HOME (line 98) | pub const RUSTUP_HOME: &'static str = "RUSTUP_HOME"; constant PRE_COMMIT_HOME (line 103) | pub const PRE_COMMIT_HOME: &'static str = "PRE_COMMIT_HOME"; constant PRE_COMMIT_ALLOW_NO_CONFIG (line 104) | const PRE_COMMIT_ALLOW_NO_CONFIG: &'static str = "PRE_COMMIT_ALLOW_NO_... constant PRE_COMMIT_NO_CONCURRENCY (line 105) | const PRE_COMMIT_NO_CONCURRENCY: &'static str = "PRE_COMMIT_NO_CONCURR... method var_os (line 110) | pub fn var_os(name: &str) -> Option { method is_set (line 120) | pub fn is_set(name: &str) -> bool { method is_under_ci (line 125) | pub fn is_under_ci() -> bool { method var (line 130) | pub fn var(name: &str) -> Result { method var_as_bool (line 138) | pub fn var_as_bool(name: &str) -> Option { method parse_boolish (line 153) | fn parse_boolish(val: &str) -> Option { method pre_commit_name (line 171) | fn pre_commit_name(name: &str) -> Option<&str> { function test_parse_boolish (line 185) | fn test_parse_boolish() { FILE: crates/prek-consts/src/lib.rs constant PRE_COMMIT_CONFIG_YAML (line 8) | pub const PRE_COMMIT_CONFIG_YAML: &str = ".pre-commit-config.yaml"; constant PRE_COMMIT_CONFIG_YML (line 9) | pub const PRE_COMMIT_CONFIG_YML: &str = ".pre-commit-config.yml"; constant PREK_TOML (line 10) | pub const PREK_TOML: &str = "prek.toml"; constant PRE_COMMIT_HOOKS_YAML (line 11) | pub const PRE_COMMIT_HOOKS_YAML: &str = ".pre-commit-hooks.yaml"; function prepend_paths (line 18) | pub fn prepend_paths(paths: &[&Path]) -> Result) -> std::fmt::Result { method new (line 90) | pub const fn new(tag_ids: &[u16]) -> Self { method from_tags (line 106) | pub fn from_tags(tags: I) -> Self method insert (line 124) | pub const fn insert(&mut self, tag_id: u16) { method is_disjoint (line 131) | pub fn is_disjoint(&self, other: &TagSet) -> bool { method is_subset (line 141) | pub fn is_subset(&self, other: &TagSet) -> bool { method iter (line 151) | pub fn iter(&self) -> TagSetIter<'_> { method is_empty (line 160) | pub fn is_empty(&self) -> bool { method bitor_assign (line 166) | fn bitor_assign(&mut self, rhs: &TagSet) { method deserialize (line 175) | fn deserialize(deserializer: D) -> Result method inline_schema (line 214) | fn inline_schema() -> bool { method schema_name (line 218) | fn schema_name() -> Cow<'static, str> { method json_schema (line 222) | fn json_schema(_generator: &mut schemars::SchemaGenerator) -> schemars... function tag_id (line 48) | fn tag_id(tag: &str) -> Option { type TagSetIter (line 52) | pub struct TagSetIter<'a> { type Item (line 59) | type Item = &'static str; method next (line 61) | fn next(&mut self) -> Option { type Error (line 234) | pub enum Error { function tags_from_path (line 243) | pub fn tags_from_path(path: &Path) -> Result { function tags_from_filename (line 301) | fn tags_from_filename(filename: &Path) -> TagSet { function tags_from_interpreter (line 337) | fn tags_from_interpreter(interpreter: &str) -> TagSet { type ShebangError (line 360) | pub enum ShebangError { function starts_with (line 373) | fn starts_with(slice: &[String], prefix: &[&str]) -> bool { function parse_nix_shebang (line 381) | fn parse_nix_shebang(reader: &mut R, mut cmd: Vec) -... function parse_shebang (line 424) | pub fn parse_shebang(path: &Path) -> Result, ShebangError> { function is_text_char (line 483) | fn is_text_char(b: u8) -> bool { function is_text_file (line 492) | fn is_text_file(path: &Path) -> bool { function assert_tagset (line 514) | fn assert_tagset(actual: &TagSet, expected: &[&'static str]) { function tags_from_path (line 524) | fn tags_from_path() -> anyhow::Result<()> { function tags_from_path (line 543) | fn tags_from_path() -> anyhow::Result<()> { function tags_from_filename (line 557) | fn tags_from_filename() { function tags_from_interpreter (line 605) | fn tags_from_interpreter() { function tagset_new_iter_and_is_empty (line 626) | fn tagset_new_iter_and_is_empty() { function tagset_from_tags_intersects_subset_and_bitor_assign (line 640) | fn tagset_from_tags_intersects_subset_and_bitor_assign() { function tagset_new_panics_on_out_of_range_id (line 656) | fn tagset_new_panics_on_out_of_range_id() { function tagset_deserialize_from_string_slice (line 664) | fn tagset_deserialize_from_string_slice() { function tagset_deserialize_unknown_tag_errors (line 672) | fn tagset_deserialize_unknown_tag_errors() { function parse_shebang_nix_shell_interpreter (line 682) | fn parse_shebang_nix_shell_interpreter() -> anyhow::Result<()> { function parse_shebang_nix_shell_without_interpreter (line 702) | fn parse_shebang_nix_shell_without_interpreter() -> anyhow::Result<()> { FILE: crates/prek-identify/src/tags.rs constant ALL_TAGS (line 5) | pub const ALL_TAGS: [&str; 311] = [ constant TAG_FILE (line 319) | pub const TAG_FILE: u16 = 78; constant TAG_DIRECTORY (line 320) | pub const TAG_DIRECTORY: u16 = 58; constant TAG_SYMLINK (line 321) | pub const TAG_SYMLINK: u16 = 248; constant TAG_SOCKET (line 322) | pub const TAG_SOCKET: u16 = 238; constant TAG_EXECUTABLE (line 323) | pub const TAG_EXECUTABLE: u16 = 74; constant TAG_NON_EXECUTABLE (line 324) | pub const TAG_NON_EXECUTABLE: u16 = 176; constant TAG_TEXT (line 325) | pub const TAG_TEXT: u16 = 255; constant TAG_BINARY (line 326) | pub const TAG_BINARY: u16 = 21; constant TAG_SET_FILE (line 328) | pub const TAG_SET_FILE: TagSet = TagSet::new(&[78]); constant TAG_SET_DIRECTORY (line 329) | pub const TAG_SET_DIRECTORY: TagSet = TagSet::new(&[58]); constant TAG_SET_SYMLINK (line 330) | pub const TAG_SET_SYMLINK: TagSet = TagSet::new(&[248]); constant TAG_SET_SOCKET (line 331) | pub const TAG_SET_SOCKET: TagSet = TagSet::new(&[238]); constant TAG_SET_TEXT (line 332) | pub const TAG_SET_TEXT: TagSet = TagSet::new(&[255]); constant TAG_SET_TEXT_OR_BINARY (line 333) | pub const TAG_SET_TEXT_OR_BINARY: TagSet = TagSet::new(&[21, 255]); constant TAG_SET_EXECUTABLE_TEXT (line 334) | pub const TAG_SET_EXECUTABLE_TEXT: TagSet = TagSet::new(&[74, 255]); constant TAG_SET_JSON (line 335) | pub const TAG_SET_JSON: TagSet = TagSet::new(&[135]); constant TAG_SET_JSON5 (line 336) | pub const TAG_SET_JSON5: TagSet = TagSet::new(&[136]); constant TAG_SET_TOML (line 337) | pub const TAG_SET_TOML: TagSet = TagSet::new(&[260]); constant TAG_SET_XML (line 338) | pub const TAG_SET_XML: TagSet = TagSet::new(&[297]); constant TAG_SET_YAML (line 339) | pub const TAG_SET_YAML: TagSet = TagSet::new(&[301]); constant INTERPRETERS (line 341) | pub const INTERPRETERS: phf::Map<&str, TagSet> = phf::phf_map! { constant EXTENSIONS (line 390) | pub const EXTENSIONS: phf::Map<&str, TagSet> = phf::phf_map! { constant NAMES (line 1071) | pub const NAMES: phf::Map<&str, TagSet> = phf::phf_map! { FILE: crates/prek-pty/src/error.rs type Error (line 3) | pub enum Error { method fmt (line 13) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method from (line 25) | fn from(e: std::io::Error) -> Self { method from (line 31) | fn from(e: rustix::io::Errno) -> Self { method source (line 37) | fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { type Result (line 47) | pub type Result = std::result::Result; FILE: crates/prek-pty/src/pty.rs type AsyncPty (line 4) | type AsyncPty = tokio::io::unix::AsyncFd; function open (line 11) | pub fn open() -> crate::Result<(Pty, Pts)> { type Pty (line 20) | pub struct Pty(AsyncPty); method from_fd (line 31) | pub unsafe fn from_fd(fd: std::os::fd::OwnedFd) -> crate::Result { method resize (line 41) | pub fn resize(&self, size: crate::Size) -> crate::Result<()> { method split (line 48) | pub fn split(&self) -> (ReadPty<'_>, WritePty<'_>) { method into_split (line 58) | pub fn into_split(self) -> (OwnedReadPty, OwnedWritePty) { method as_fd (line 73) | fn as_fd(&self) -> std::os::fd::BorrowedFd<'_> { method as_raw_fd (line 79) | fn as_raw_fd(&self) -> std::os::fd::RawFd { method poll_read (line 85) | fn poll_read( method poll_write (line 95) | fn poll_write( method poll_flush (line 103) | fn poll_flush( method poll_shutdown (line 110) | fn poll_shutdown( function from (line 67) | fn from(pty: Pty) -> Self { type Pts (line 121) | pub struct Pts(pub(crate) crate::sys::Pts); method from_fd (line 130) | pub unsafe fn from_fd(fd: std::os::fd::OwnedFd) -> Self { method setup_subprocess (line 134) | pub fn setup_subprocess( method session_leader (line 144) | pub fn session_leader(&self) -> impl FnMut() -> std::io::Result<()> + ... method as_fd (line 150) | fn as_fd(&self) -> std::os::fd::BorrowedFd<'_> { method as_raw_fd (line 156) | fn as_raw_fd(&self) -> std::os::fd::RawFd { type ReadPty (line 162) | pub struct ReadPty<'a>(&'a AsyncPty); function poll_read (line 165) | fn poll_read( type WritePty (line 175) | pub struct WritePty<'a>(&'a AsyncPty); function resize (line 182) | pub fn resize(&self, size: crate::Size) -> crate::Result<()> { function poll_write (line 188) | fn poll_write( function poll_flush (line 196) | fn poll_flush( function poll_shutdown (line 203) | fn poll_shutdown( type OwnedReadPty (line 213) | pub struct OwnedReadPty(std::sync::Arc); method unsplit (line 223) | pub fn unsplit(self, write_half: OwnedWritePty) -> crate::Result { method poll_read (line 242) | fn poll_read( type OwnedWritePty (line 253) | pub struct OwnedWritePty(std::sync::Arc); method resize (line 260) | pub fn resize(&self, size: crate::Size) -> crate::Result<()> { method poll_write (line 266) | fn poll_write( method poll_flush (line 274) | fn poll_flush( method poll_shutdown (line 281) | fn poll_shutdown( function poll_read (line 289) | fn poll_read( function poll_write (line 324) | fn poll_write( function poll_flush (line 341) | fn poll_flush( FILE: crates/prek-pty/src/sys.rs type Pty (line 7) | pub struct Pty(std::os::fd::OwnedFd); method open (line 10) | pub fn open() -> crate::Result { method from_fd (line 25) | pub unsafe fn from_fd(fd: std::os::fd::OwnedFd) -> Self { method set_term_size (line 29) | pub fn set_term_size(&self, size: crate::Size) -> crate::Result<()> { method pts (line 36) | pub fn pts(&self) -> crate::Result { method set_nonblocking (line 47) | pub fn set_nonblocking(&self) -> rustix::io::Result<()> { method read_buf (line 55) | pub fn read_buf<'a>( method as_fd (line 77) | fn as_fd(&self) -> std::os::fd::BorrowedFd<'_> { method as_raw_fd (line 87) | fn as_raw_fd(&self) -> std::os::fd::RawFd { method read (line 93) | fn read(&mut self, buf: &mut [u8]) -> std::io::Result { method write (line 99) | fn write(&mut self, buf: &[u8]) -> std::io::Result { method flush (line 103) | fn flush(&mut self) -> std::io::Result<()> { function from (line 64) | fn from(pty: Pty) -> Self { function read (line 109) | fn read(&mut self, buf: &mut [u8]) -> std::io::Result { function write (line 115) | fn write(&mut self, buf: &[u8]) -> std::io::Result { function flush (line 119) | fn flush(&mut self) -> std::io::Result<()> { type Pts (line 124) | pub struct Pts(std::os::fd::OwnedFd); method from_fd (line 127) | pub unsafe fn from_fd(fd: std::os::fd::OwnedFd) -> Self { method setup_subprocess (line 131) | pub fn setup_subprocess( method session_leader (line 145) | pub fn session_leader(&self) -> impl FnMut() -> std::io::Result<()> + ... method as_fd (line 164) | fn as_fd(&self) -> std::os::fd::BorrowedFd<'_> { method as_raw_fd (line 170) | fn as_raw_fd(&self) -> std::os::fd::RawFd { function from (line 158) | fn from(pts: Pts) -> Self { FILE: crates/prek-pty/src/types.rs type Size (line 3) | pub struct Size { method new (line 14) | pub fn new(row: u16, col: u16) -> Self { method new_with_pixel (line 26) | pub fn new_with_pixel(row: u16, col: u16, xpixel: u16, ypixel: u16) ->... function from (line 37) | fn from(size: Size) -> Self { FILE: crates/prek/build.rs function main (line 29) | fn main() { function commit_info (line 43) | fn commit_info(workspace_root: &Path) { function git_head (line 104) | fn git_head(git_dir: &Path) -> Option { FILE: crates/prek/src/archive.rs type Error (line 35) | pub enum Error { constant DEFAULT_BUF_SIZE (line 50) | const DEFAULT_BUF_SIZE: usize = 128 * 1024; type ArchiveExtension (line 53) | pub enum ArchiveExtension { method from_path (line 65) | pub fn from_path(path: impl AsRef) -> Result { method fmt (line 98) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { function strip_component (line 114) | pub fn strip_component(source: impl AsRef) -> Result(reader: R, target: impl AsRef( function untar_xz (line 275) | pub async fn untar_xz( function untar (line 295) | pub async fn untar(reader: R, target: impl AsRef( FILE: crates/prek/src/cleanup.rs function cleanup (line 6) | pub fn cleanup() { function add_cleanup (line 14) | pub fn add_cleanup(f: F) { FILE: crates/prek/src/cli/auto_update.rs type Revision (line 31) | struct Revision { function auto_update (line 36) | pub(crate) async fn auto_update( function update_repo (line 189) | async fn update_repo( function setup_and_fetch_repo (line 228) | async fn setup_and_fetch_repo(repo_url: &str, repo_path: &Path) -> Resul... function resolve_bleeding_edge (line 257) | async fn resolve_bleeding_edge(repo_path: &Path) -> Result Result> { function resolve_revision (line 341) | async fn resolve_revision( function freeze_revision (line 377) | async fn freeze_revision(repo_path: &Path, rev: &str) -> Result]) -... function render_updated_toml_config (line 499) | fn render_updated_toml_config( function render_updated_yaml_config (line 571) | fn render_updated_yaml_config( function setup_test_repo (line 639) | async fn setup_test_repo() -> tempfile::TempDir { function git_cmd (line 702) | fn git_cmd(dir: impl AsRef, summary: &str) -> Cmd { function create_commit (line 710) | async fn create_commit(repo: &Path, message: &str) { function create_backdated_commit (line 719) | async fn create_backdated_commit(repo: &Path, message: &str, days_ago: u... function create_lightweight_tag (line 738) | async fn create_lightweight_tag(repo: &Path, tag: &str) { function create_annotated_tag (line 748) | async fn create_annotated_tag(repo: &Path, tag: &str, days_ago: u64) { function get_backdated_timestamp (line 770) | fn get_backdated_timestamp(days_ago: u64) -> u64 { function test_get_tag_timestamps (line 779) | async fn test_get_tag_timestamps() { function test_resolve_bleeding_edge_prefers_exact_tag (line 798) | async fn test_resolve_bleeding_edge_prefers_exact_tag() { function test_resolve_bleeding_edge_falls_back_to_rev_parse (line 819) | async fn test_resolve_bleeding_edge_falls_back_to_rev_parse() { function test_resolve_revision_uses_cooldown_bucket (line 851) | async fn test_resolve_revision_uses_cooldown_bucket() { function test_resolve_revision_returns_none_when_all_tags_too_new (line 868) | async fn test_resolve_revision_returns_none_when_all_tags_too_new() { function test_resolve_revision_picks_oldest_eligible_bucket (line 884) | async fn test_resolve_revision_picks_oldest_eligible_bucket() { function test_resolve_revision_prefers_version_like_tags (line 903) | async fn test_resolve_revision_prefers_version_like_tags() { function test_resolve_revision_picks_closest_version_string (line 921) | async fn test_resolve_revision_picks_closest_version_string() { function test_get_tag_timestamps_stable_order_for_equal_timestamps (line 936) | async fn test_get_tag_timestamps_stable_order_for_equal_timestamps() { function test_get_tag_timestamps_deterministic_order_for_equal_timestamp_non_semver (line 956) | async fn test_get_tag_timestamps_deterministic_order_for_equal_timestamp... FILE: crates/prek/src/cli/cache_clean.rs function cache_clean (line 16) | pub(crate) fn cache_clean(store: &Store, printer: Printer) -> Result) -> i... function remove_symlink (line 117) | fn remove_symlink(path: &Path, file_type: FileType) -> io::Result<()> { function fix_permissions (line 138) | pub fn fix_permissions>(path: P) -> io::Result<()> { function fix_permissions (line 167) | pub fn fix_permissions>(_path: P) -> io::Result<()> { function rm_rf_counts_and_removes_tree (line 178) | fn rm_rf_counts_and_removes_tree() -> anyhow::Result<()> { function rm_rf_empty_directory (line 196) | fn rm_rf_empty_directory() -> anyhow::Result<()> { function rm_rf_rejects_non_directory (line 211) | fn rm_rf_rejects_non_directory() -> anyhow::Result<()> { function rm_rf_non_exist_directory (line 224) | fn rm_rf_non_exist_directory() -> anyhow::Result<()> { function rm_rf_counts_symlink_entries (line 238) | fn rm_rf_counts_symlink_entries() -> anyhow::Result<()> { FILE: crates/prek/src/cli/cache_gc.rs type RemovalKind (line 21) | enum RemovalKind { method display (line 29) | fn display(self, count: usize) -> &'static str { type RemovalItem (line 49) | struct RemovalItem { method new (line 56) | fn new(label: String, abs_path: String) -> Self { type Removal (line 66) | struct Removal { method new (line 74) | fn new(kind: RemovalKind) -> Self { method fmt (line 85) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { method add_assign (line 96) | fn add_assign(&mut self, rhs: Self) { type RemovalSummary (line 106) | struct RemovalSummary { method is_empty (line 113) | fn is_empty(&self) -> bool { method joined (line 117) | fn joined(&self) -> String { method total_bytes (line 121) | fn total_bytes(&self) -> u64 { method add_assign (line 127) | fn add_assign(&mut self, rhs: &Removal) { function cache_gc (line 136) | pub(crate) async fn cache_gc( function print_removed_details (line 311) | fn print_removed_details(printer: Printer, verb: &str, removal: &Removal... function hook_env_keys_from_config (line 341) | fn hook_env_keys_from_config(store: &Store, config: &config::Config) -> ... function mark_tool_versions_from_install_info (line 402) | fn mark_tool_versions_from_install_info( function tool_version_dir_name (line 421) | fn tool_version_dir_name(bucket_root: &Path, toolchain: &Path) -> Option... function sweep_tool_versions (line 430) | fn sweep_tool_versions( function sweep_tool_bucket_versions (line 449) | fn sweep_tool_bucket_versions( function sweep_dir_by_name (line 525) | fn sweep_dir_by_name( function label_for_entry (line 611) | fn label_for_entry( function detail_lines_for_entry (line 626) | fn detail_lines_for_entry( type RepoMarker (line 667) | struct RepoMarker { function read_repo_marker (line 672) | fn read_repo_marker(root: &Path) -> Option { function read_hook_marker (line 680) | fn read_hook_marker(root: &Path) -> Option { function truncate_end (line 685) | fn truncate_end(s: &str, max_chars: usize) -> String { function split_repo_dependency (line 697) | fn split_repo_dependency(deps: &FxHashSet) -> (Option, V... function format_dependency_list (line 721) | fn format_dependency_list(deps: &[String], max_items: usize, max_chars: ... function truncate_end_returns_input_when_short_enough (line 740) | fn truncate_end_returns_input_when_short_enough() { function truncate_end_truncates_and_appends_ellipsis (line 746) | fn truncate_end_truncates_and_appends_ellipsis() { function truncate_end_counts_chars_not_bytes (line 752) | fn truncate_end_counts_chars_not_bytes() { function split_repo_dependency_prefers_url_like_repo_at_rev (line 759) | fn split_repo_dependency_prefers_url_like_repo_at_rev() { function split_repo_dependency_returns_none_when_no_repo_like_dep (line 775) | fn split_repo_dependency_returns_none_when_no_repo_like_dep() { function format_dependency_list_includes_more_suffix (line 786) | fn format_dependency_list_includes_more_suffix() { function format_dependency_list_truncates_rendered_string (line 792) | fn format_dependency_list_truncates_rendered_string() { FILE: crates/prek/src/cli/cache_size.rs function cache_size (line 11) | pub(crate) fn cache_size( function human_readable_bytes (line 37) | pub(crate) fn human_readable_bytes(bytes: u64) -> (f32, &'static str) { function dir_size_bytes (line 45) | pub(crate) fn dir_size_bytes(path: &Path) -> u64 { function human_readable_bytes_handles_zero (line 67) | fn human_readable_bytes_handles_zero() { function dir_stats_missing_directory (line 74) | fn dir_stats_missing_directory() -> anyhow::Result<()> { function dir_stats_empty_directory (line 84) | fn dir_stats_empty_directory() -> anyhow::Result<()> { function dir_stats_nested_files (line 93) | fn dir_stats_nested_files() -> anyhow::Result<()> { FILE: crates/prek/src/cli/completion.rs function selector_completer (line 14) | pub(crate) fn selector_completer(current: &OsStr) -> Vec Vec<(String, Option)> { function list_subdirs (line 188) | fn list_subdirs( function list_direct_project_colons (line 229) | fn list_direct_project_colons( FILE: crates/prek/src/cli/hook_impl.rs function hook_impl (line 27) | pub(crate) async fn hook_impl( function read_hook_stdin (line 150) | async fn read_hook_stdin(hook_type: HookType) -> Result> { function run_legacy (line 161) | async fn run_legacy( function to_run_args (line 220) | async fn to_run_args(hook_type: HookType, args: &[OsString], stdin: &[u8... type PushInfo (line 275) | struct PushInfo { function parse_pre_push_info (line 283) | async fn parse_pre_push_info(remote_name: &str, stdin: &[u8]) -> Option<... function format_expected_args (line 352) | fn format_expected_args(range: RangeInclusive) -> String { function format_received_args (line 364) | fn format_received_args(received: usize) -> String { function format_argument_dump (line 372) | fn format_argument_dump(args: &[OsString]) -> String { FILE: crates/prek/src/cli/identify.rs type IdentifyEntry (line 13) | struct IdentifyEntry { function identify (line 18) | pub(crate) fn identify( FILE: crates/prek/src/cli/install.rs function install (line 26) | pub(crate) async fn install( function prepare_hooks (line 104) | pub(crate) async fn prepare_hooks( function get_hook_types (line 136) | fn get_hook_types( function install_hook_script (line 176) | fn install_hook_script( function render_global_args (line 329) | fn render_global_args(quiet: u8, verbose: u8, no_progress: bool) -> Stri... function is_our_script (line 378) | fn is_our_script(hook_path: &Path) -> std::io::Result { function uninstall (line 385) | pub(crate) async fn uninstall( function init_template_dir (line 459) | pub(crate) async fn init_template_dir( FILE: crates/prek/src/cli/list.rs type SerializableHook (line 18) | struct SerializableHook { function list (line 28) | pub(crate) async fn list( FILE: crates/prek/src/cli/list_builtins.rs type SerializableBuiltinHook (line 13) | struct SerializableBuiltinHook { function list_builtins (line 20) | pub(crate) fn list_builtins( FILE: crates/prek/src/cli/mod.rs type ExitStatus (line 52) | pub(crate) enum ExitStatus { method from (line 82) | fn from(code: u8) -> Self { method from (line 70) | fn from(status: ExitStatus) -> Self { type ColorChoice (line 91) | pub enum ColorChoice { function from (line 103) | fn from(value: ColorChoice) -> Self { constant STYLES (line 112) | const STYLES: Styles = Styles::styled() type Cli (line 131) | pub(crate) struct Cli { type GlobalArgs (line 146) | pub(crate) struct GlobalArgs { type Command (line 217) | pub(crate) enum Command { type InstallArgs (line 272) | pub(crate) struct InstallArgs { type PrepareHooksArgs (line 342) | pub(crate) struct PrepareHooksArgs { type UninstallArgs (line 377) | pub(crate) struct UninstallArgs { type RunExtraArgs (line 398) | pub(crate) struct RunExtraArgs { type RunArgs (line 427) | pub(crate) struct RunArgs { type TryRepoArgs (line 531) | pub(crate) struct TryRepoArgs { type ListOutputFormat (line 545) | pub(crate) enum ListOutputFormat { type IdentifyOutputFormat (line 553) | pub(crate) enum IdentifyOutputFormat { type ListBuiltinsArgs (line 560) | pub(crate) struct ListBuiltinsArgs { type ListArgs (line 567) | pub(crate) struct ListArgs { type IdentifyArgs (line 612) | pub(crate) struct IdentifyArgs { type ValidateConfigArgs (line 622) | pub(crate) struct ValidateConfigArgs { type ValidateManifestArgs (line 629) | pub(crate) struct ValidateManifestArgs { type SampleConfigArgs (line 637) | pub(crate) struct SampleConfigArgs { type SampleConfigFormat (line 656) | pub(crate) enum SampleConfigFormat { type SampleConfigTarget (line 662) | pub(crate) enum SampleConfigTarget { method from (line 669) | fn from(value: Option>) -> Self { type AutoUpdateArgs (line 679) | pub(crate) struct AutoUpdateArgs { type HookImplArgs (line 709) | pub(crate) struct HookImplArgs { type CacheNamespace (line 755) | pub(crate) struct CacheNamespace { type UtilNamespace (line 761) | pub(crate) struct UtilNamespace { type UtilCommand (line 767) | pub(crate) enum UtilCommand { type YamlToTomlArgs (line 783) | pub(crate) struct YamlToTomlArgs { type CacheCommand (line 800) | pub(crate) enum CacheCommand { type SizeArgs (line 812) | pub struct SizeArgs { type CacheGcArgs (line 819) | pub(crate) struct CacheGcArgs { type SelfNamespace (line 826) | pub(crate) struct SelfNamespace { type SelfCommand (line 832) | pub(crate) enum SelfCommand { type SelfUpdateArgs (line 838) | pub(crate) struct SelfUpdateArgs { type GenerateShellCompletionArgs (line 850) | pub(crate) struct GenerateShellCompletionArgs { type InitTemplateDirArgs (line 857) | pub(crate) struct InitTemplateDirArgs { constant ROOT_DIR (line 887) | const ROOT_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../"); type Mode (line 889) | enum Mode { function generate (line 900) | fn generate(mut cmd: Command) -> String { function generate_command (line 921) | fn generate_command<'a>( function emit_env_option (line 1102) | fn emit_env_option(opt: &clap::Arg, output: &mut String) { function emit_default_option (line 1114) | fn emit_default_option(opt: &clap::Arg, output: &mut String) { function emit_possible_options (line 1132) | fn emit_possible_options(opt: &clap::Arg, output: &mut String) { function generate_cli_reference (line 1159) | fn generate_cli_reference() -> Result<()> { FILE: crates/prek/src/cli/reporter.rs function set_current_reporter (line 18) | fn set_current_reporter(reporter: Option<&Arc>) { function suspend (line 27) | pub(crate) fn suspend(f: impl FnOnce() + Send + 'static) { type BarState (line 36) | struct BarState { method id (line 45) | fn id(&mut self) -> usize { type ProgressReporter (line 51) | struct ProgressReporter { method new (line 59) | fn new(root: ProgressBar, children: MultiProgress, printer: Printer) -... method on_start (line 68) | fn on_start(&self, msg: impl Into>) -> usize { method on_progress (line 84) | fn on_progress(&self, id: usize) { method on_complete (line 94) | fn on_complete(&self) { method from (line 101) | fn from(printer: Printer) -> Self { type HookInitReporter (line 115) | pub(crate) struct HookInitReporter { method new (line 120) | pub(crate) fn new(printer: Printer) -> Self { method on_clone_start (line 128) | fn on_clone_start(&self, repo: &str) -> usize { method on_clone_complete (line 137) | fn on_clone_complete(&self, id: usize) { method on_complete (line 141) | fn on_complete(&self) { type HookInstallReporter (line 146) | pub(crate) struct HookInstallReporter { method new (line 151) | pub(crate) fn new(printer: Printer) -> Self { method on_install_start (line 159) | pub fn on_install_start(&self, hook: &Hook) -> usize { method on_install_complete (line 171) | pub fn on_install_complete(&self, id: usize) { method on_complete (line 175) | pub fn on_complete(&self) { type HookRunReporter (line 180) | pub(crate) struct HookRunReporter { method new (line 186) | pub fn new(printer: Printer, dots: usize) -> Self { method on_run_start (line 193) | pub fn on_run_start(&self, hook: &Hook, len: usize) -> usize { method on_run_progress (line 220) | pub fn on_run_progress(&self, id: usize, completed: u64) { method on_run_complete (line 226) | pub fn on_run_complete(&self, id: usize) { method suspend (line 241) | pub fn suspend(&self, f: impl FnOnce() -> R) -> R { method on_complete (line 245) | pub fn on_complete(&self) { type AutoUpdateReporter (line 251) | pub(crate) struct AutoUpdateReporter { method new (line 256) | pub(crate) fn new(printer: Printer) -> Self { method on_update_start (line 264) | pub fn on_update_start(&self, repo: &str) -> usize { method on_update_complete (line 273) | pub fn on_update_complete(&self, id: usize) { method on_complete (line 277) | pub fn on_complete(&self) { type CleaningReporter (line 283) | pub(crate) struct CleaningReporter { method new (line 288) | pub(crate) fn new(printer: Printer, max: usize) -> Self { method on_clean (line 301) | pub(crate) fn on_clean(&self) { method on_complete (line 305) | pub(crate) fn on_complete(&self) { FILE: crates/prek/src/cli/run/filter.rs type FilenameFilter (line 19) | pub(crate) struct FilenameFilter<'a> { function new (line 25) | pub(crate) fn new(include: Option<&'a FilePattern>, exclude: Option<&'a ... function filter (line 29) | pub(crate) fn filter(&self, filename: &Path) -> bool { type FileTagFilter (line 48) | pub(crate) struct FileTagFilter<'a> { function new (line 55) | fn new( function filter (line 67) | pub(crate) fn filter(&self, file_types: &TagSet) -> bool { type FileFilter (line 84) | pub(crate) struct FileFilter<'a> { function for_project (line 93) | pub(crate) fn for_project( function len (line 143) | pub(crate) fn len(&self) -> usize { function by_type (line 148) | pub(crate) fn by_type( function for_hook (line 173) | pub(crate) fn for_hook(&self, hook: &Hook) -> Vec<&Path> { type CollectOptions (line 213) | pub(crate) struct CollectOptions { method all_files (line 224) | pub(crate) fn all_files() -> Self { function collect_files (line 235) | pub(crate) async fn collect_files(root: &Path, opts: CollectOptions) -> ... function adjust_relative_path (line 290) | fn adjust_relative_path(path: &str, new_cwd: &Path) -> Result FilePattern { function filename_filter_supports_glob_include_and_exclude (line 406) | fn filename_filter_supports_glob_include_and_exclude() { FILE: crates/prek/src/cli/run/keeper.rs type IntentToAddKeeper (line 19) | struct IntentToAddKeeper(Vec); method clean (line 26) | async fn clean(root: &Path) -> Result { method restore (line 47) | fn restore(&self) -> Result<()> { type WorkingTreeKeeper (line 20) | struct WorkingTreeKeeper { method clean (line 76) | async fn clean(root: &Path, patch_dir: &Path) -> Result { method checkout_working_tree (line 146) | fn checkout_working_tree(root: &Path) -> Result<()> { method git_apply (line 165) | fn git_apply(patch: &Path) -> Result<()> { method restore (line 178) | fn restore(&self) -> Result<()> { method drop (line 65) | fn drop(&mut self) { method drop (line 211) | fn drop(&mut self) { type WorkTreeKeeper (line 222) | pub struct WorkTreeKeeper { method clean (line 243) | pub async fn clean(store: &Store, root: &Path) -> Result { method restore (line 263) | fn restore(&mut self) { type RestoreGuard (line 228) | pub struct RestoreGuard { method drop (line 233) | fn drop(&mut self) { FILE: crates/prek/src/cli/run/run.rs function run (line 35) | pub(crate) async fn run( function set_env_vars (line 218) | fn set_env_vars(from_ref: Option<&String>, to_ref: Option<&String>, args... type LazyInstallInfo (line 267) | struct LazyInstallInfo { method new (line 273) | fn new(info: Arc) -> Self { method matches (line 280) | fn matches(&self, hook: &Hook) -> bool { method info (line 284) | fn info(&self) -> Arc { method ensure_healthy (line 288) | async fn ensure_healthy(&self) -> bool { function install_hooks (line 307) | pub async fn install_hooks( function partition_hooks (line 442) | fn partition_hooks(hooks: &[Arc]) -> Vec>> { type StatusPrinter (line 489) | struct StatusPrinter { constant PASSED (line 495) | const PASSED: &'static str = "Passed"; constant FAILED (line 496) | const FAILED: &'static str = "Failed"; constant SKIPPED (line 497) | const SKIPPED: &'static str = "Skipped"; constant DRY_RUN (line 498) | const DRY_RUN: &'static str = "Dry Run"; constant NO_FILES (line 499) | const NO_FILES: &'static str = "(no files to check)"; constant UNIMPLEMENTED (line 500) | const UNIMPLEMENTED: &'static str = "(unimplemented yet)"; method for_hooks (line 502) | fn for_hooks(hooks: &[InstalledHook], printer: Printer) -> Self { method printer (line 516) | fn printer(&self) -> Printer { method bar_len (line 520) | fn bar_len(&self) -> usize { method write (line 524) | fn write( function run_hooks (line 575) | async fn run_hooks( type PriorityGroupRanges (line 739) | struct PriorityGroupRanges<'a> { function new (line 745) | fn new(hooks: &'a [InstalledHook]) -> Self { type Item (line 751) | type Item = std::ops::Range; method next (line 753) | fn next(&mut self) -> Option { function run_priority_group (line 769) | async fn run_priority_group( function render_priority_group (line 797) | fn render_priority_group( function apply_group_outcome (line 920) | fn apply_group_outcome( function shuffle (line 948) | fn shuffle(filenames: &mut [T]) { type RunStatus (line 955) | enum RunStatus { method as_bool (line 964) | fn as_bool(self) -> bool { method is_unimplemented (line 971) | fn is_unimplemented(self) -> bool { method is_skipped (line 975) | fn is_skipped(self) -> bool { type RunResult (line 980) | struct RunResult { method from_status (line 989) | fn from_status(hook: InstalledHook, status: RunStatus) -> Self { function run_hook (line 1000) | async fn run_hook( function status_printer_write_dots_saturates_instead_of_underflow (line 1075) | fn status_printer_write_dots_saturates_instead_of_underflow() { FILE: crates/prek/src/cli/run/selector.rs type Error (line 17) | pub(crate) enum Error { type SelectorSource (line 34) | pub(crate) enum SelectorSource { type SelectorExpr (line 41) | pub(crate) enum SelectorExpr { type Selector (line 51) | pub(crate) struct Selector { method as_flag (line 83) | pub(crate) fn as_flag(&self) -> Cow<'_, str> { method as_normalized_flag (line 91) | pub(crate) fn as_normalized_flag(&self) -> String { method source (line 99) | pub(crate) fn source(&self) -> &SelectorSource { method kind_str (line 103) | pub(crate) fn kind_str(&self) -> &'static str { method matches_hook (line 112) | pub(crate) fn matches_hook(&self, hook: &Hook) -> bool { method fmt (line 58) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Selectors (line 135) | pub(crate) struct Selectors { method load (line 143) | pub(crate) fn load( method includes (line 188) | pub(crate) fn includes(&self) -> &[Selector] { method skips (line 192) | pub(crate) fn skips(&self) -> &[Selector] { method has_project_selectors (line 196) | pub(crate) fn has_project_selectors(&self) -> bool { method includes_only_hook_targets (line 205) | pub(crate) fn includes_only_hook_targets(&self) -> bool { method matches_hook (line 216) | pub(crate) fn matches_hook(&self, hook: &Hook) -> bool { method matches_hook_id (line 245) | pub(crate) fn matches_hook_id(&self, hook_id: &str) -> bool { method matches_path (line 278) | pub(crate) fn matches_path(&self, path: &Path) -> bool { method report_unused (line 315) | pub(crate) fn report_unused(&self) { type SelectorUsage (line 322) | struct SelectorUsage { method use_include (line 328) | fn use_include(&mut self, idx: usize) { method use_skip (line 332) | fn use_skip(&mut self, idx: usize) { method report_unused (line 336) | fn report_unused(&self, selectors: &Selectors) { function parse_single_selector (line 395) | fn parse_single_selector( type FileSystem (line 464) | pub trait FileSystem: Copy { method absolute (line 465) | fn absolute>(&self, path: P) -> std::io::Result; method absolute (line 472) | fn absolute>(&self, path: P) -> std::io::Result { method absolute (line 562) | fn absolute>(&self, path: P) -> std::io::Result { type RealFileSystem (line 469) | pub struct RealFileSystem; function normalize_path (line 491) | fn normalize_path( function load_skips (line 513) | pub(crate) fn load_skips( function parse_comma_separated (line 548) | fn parse_comma_separated(input: &str) -> impl Iterator { type MockFileSystem (line 557) | struct MockFileSystem { method root (line 573) | fn root(&self) -> &Path { function create_test_workspace (line 578) | fn create_test_workspace() -> anyhow::Result { function test_parse_single_selector_hook_id (line 590) | fn test_parse_single_selector_hook_id() -> anyhow::Result<()> { function test_parse_single_selector_project_prefix (line 608) | fn test_parse_single_selector_project_prefix() -> anyhow::Result<()> { function test_parse_single_selector_project_hook (line 631) | fn test_parse_single_selector_project_hook() -> anyhow::Result<()> { function test_parse_single_selector_invalid (line 663) | fn test_parse_single_selector_invalid() -> anyhow::Result<()> { function test_normalize_path (line 682) | fn test_normalize_path() -> anyhow::Result<()> { function test_selector_display (line 707) | fn test_selector_display() -> anyhow::Result<()> { function test_selector_as_flag (line 753) | fn test_selector_as_flag() { FILE: crates/prek/src/cli/sample_config.rs function sample_config (line 40) | pub(crate) fn sample_config( FILE: crates/prek/src/cli/self_update.rs function format_install_hint (line 35) | fn format_install_hint() -> String { function self_update (line 53) | pub(crate) async fn self_update( FILE: crates/prek/src/cli/try_repo.rs function get_head_rev (line 20) | async fn get_head_rev(repo: &Path) -> Result { function clone_and_commit (line 32) | async fn clone_and_commit(repo_path: &Path, head_rev: &str, tmp_dir: &Pa... function prepare_repo_and_rev (line 93) | async fn prepare_repo_and_rev<'a>( function render_repo_config_toml (line 137) | fn render_repo_config_toml(repo_path: &str, rev: &str, hooks: Vec, printer: Printer) ... function validate_manifest (line 48) | pub(crate) fn validate_manifest(manifests: Vec, printer: Printe... FILE: crates/prek/src/cli/yaml_to_toml.rs function resolve_input (line 17) | fn resolve_input(input: Option) -> Result { function yaml_to_toml (line 42) | pub(crate) fn yaml_to_toml( function json_to_toml (line 105) | fn json_to_toml(value: &serde_json::Value) -> Result { function json_to_toml_value (line 130) | fn json_to_toml_value(value: &serde_json::Value) -> Value { function json_array_to_value_with_indent (line 151) | fn json_array_to_value_with_indent( function json_object_to_inline (line 180) | fn json_object_to_inline(values: &serde_json::Map Result) -> Result bool { method fmt (line 47) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type FilePatternWire (line 54) | enum FilePatternWire { method deserialize (line 61) | fn deserialize(deserializer: D) -> Result type FilePatternWireError (line 166) | enum FilePatternWireError { type FilePattern (line 176) | pub(crate) enum FilePattern { method new_glob (line 182) | pub(crate) fn new_glob(patterns: Vec) -> Result Result bool { type Error (line 211) | type Error = FilePatternWireError; method try_from (line 213) | fn try_from(value: FilePatternWire) -> Result { method fmt (line 199) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Language (line 239) | pub enum Language { type HookType (line 273) | pub(crate) enum HookType { method num_args (line 289) | pub fn num_args(self) -> RangeInclusive { type Stage (line 324) | pub(crate) enum Stage { method from (line 343) | fn from(value: HookType) -> Self { method operate_on_files (line 360) | pub fn operate_on_files(self) -> bool { type Stages (line 374) | pub(crate) enum Stages { method is_empty (line 380) | pub(crate) fn is_empty(&self) -> bool { method contains (line 384) | pub(crate) fn contains(&self, stage: Stage) -> bool { method to_vec (line 391) | pub(crate) fn to_vec(&self) -> Vec { method from (line 416) | fn from(value: Vec) -> Self { method from (line 427) | fn from(value: [Stage; N]) -> Self { method deserialize (line 433) | fn deserialize(deserializer: D) -> Result method fmt (line 400) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type PassFilenames (line 444) | pub(crate) enum PassFilenames { method deserialize (line 456) | fn deserialize(deserializer: D) -> Result type HookOptions (line 507) | pub(crate) struct HookOptions { method update (line 566) | pub fn update(&mut self, other: &Self) { type ManifestHook (line 612) | pub(crate) struct ManifestHook { type Manifest (line 628) | pub(crate) struct Manifest { type RemoteHook (line 638) | pub(crate) struct RemoteHook { type LocalHook (line 663) | pub(crate) struct LocalHook { type MetaHook (line 685) | pub(crate) struct MetaHook { type Error (line 728) | type Error = PredefinedHookWireError; method try_from (line 730) | fn try_from(hook_options: RemoteHook) -> Result { type PredefinedHookWireError (line 698) | pub(crate) enum PredefinedHookWireError { type PredefinedHookKind (line 713) | pub(crate) enum PredefinedHookKind { method fmt (line 719) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type BuiltinHook (line 765) | pub(crate) struct BuiltinHook { type Error (line 785) | type Error = PredefinedHookWireError; method try_from (line 787) | fn try_from(hook_options: RemoteHook) -> Result { type RemoteRepo (line 820) | pub(crate) struct RemoteRepo { method new (line 832) | pub fn new(repo: String, rev: String, hooks: Vec) -> Self { method hash (line 851) | fn hash(&self, state: &mut H) { method eq (line 843) | fn eq(&self, other: &Self) -> bool { method fmt (line 858) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type LocalRepo (line 865) | pub(crate) struct LocalRepo { method fmt (line 875) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type MetaRepo (line 882) | pub(crate) struct MetaRepo { method fmt (line 892) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type BuiltinRepo (line 899) | pub(crate) struct BuiltinRepo { type Repo (line 909) | pub(crate) enum Repo { method deserialize (line 917) | fn deserialize(deserializer: D) -> Result function remote_hook_to_local (line 1056) | fn remote_hook_to_local(hook: RemoteHook) -> Result type Config (line 1081) | pub(crate) struct Config { type Error (line 1113) | pub(crate) enum Error { method warn_parse_error (line 1126) | pub(crate) fn warn_parse_error(&self) { constant EXPECTED_UNUSED (line 1140) | const EXPECTED_UNUSED: &[&str] = &["minimum_pre_commit_version", "ci"]; function push_unused_paths (line 1142) | fn push_unused_paths<'a, I>(acc: &mut Vec, prefix: &str, keys: I) function collect_unused_paths (line 1156) | fn collect_unused_paths(config: &Config) -> Vec { function warn_unused_paths (line 1208) | fn warn_unused_paths(path: &Path, entries: &[String]) { function load_config (line 1235) | pub(crate) fn load_config(path: &Path) -> Result { function read_config (line 1249) | pub(crate) fn read_config(path: &Path) -> Result { function read_manifest (line 1295) | pub(crate) fn read_manifest(path: &Path) -> Result { function looks_like_sha (line 1304) | fn looks_like_sha(s: &str) -> bool { function deserialize_and_validate_minimum_version (line 1308) | fn deserialize_and_validate_minimum_version<'de, D>( constant VERSION_FILTER (line 1345) | const VERSION_FILTER: (&str, &str) = ( function stages_deserialize_empty_as_empty (line 1351) | fn stages_deserialize_empty_as_empty() { function config_default_stages_deserialize_empty_as_empty (line 1364) | fn config_default_stages_deserialize_empty_as_empty() { function config_default_stages_omitted_keeps_none (line 1372) | fn config_default_stages_omitted_keeps_none() { function stages_deserialize_to_subset (line 1379) | fn stages_deserialize_to_subset() { function parse_file_patterns_regex_and_glob (line 1393) | fn parse_file_patterns_regex_and_glob() { function file_patterns_expose_sources_and_display (line 1451) | fn file_patterns_expose_sources_and_display() { function empty_glob_list_matches_nothing (line 1468) | fn empty_glob_list_matches_nothing() { function invalid_glob_pattern_errors (line 1475) | fn invalid_glob_pattern_errors() { function parse_repos (line 1486) | fn parse_repos() { function parse_hooks (line 1639) | fn parse_hooks() { function meta_hooks (line 1698) | fn meta_hooks() { function language_version (line 1793) | fn language_version() { function test_read_yaml_config (line 1819) | fn test_read_yaml_config() -> Result<()> { function test_read_toml_config (line 1826) | fn test_read_toml_config() -> Result<()> { function test_read_invalid_toml_config (line 1863) | fn test_read_invalid_toml_config() { function test_read_manifest (line 1932) | fn test_read_manifest() -> Result<()> { function test_minimum_prek_version (line 1939) | fn test_minimum_prek_version() { function test_validate_type_tags (line 2015) | fn test_validate_type_tags() { function read_config_with_merge_keys (line 2128) | fn read_config_with_merge_keys() -> Result<()> { function read_config_with_nested_merge_keys (line 2155) | fn read_config_with_nested_merge_keys() -> Result<()> { function test_list_with_unindented_square (line 2185) | fn test_list_with_unindented_square() { function test_numeric_rev_is_parsed_as_string (line 2210) | fn test_numeric_rev_is_parsed_as_string() { function pass_filenames_zero_is_rejected (line 2225) | fn pass_filenames_zero_is_rejected() { function pass_filenames_negative_is_rejected (line 2241) | fn pass_filenames_negative_is_rejected() { function pass_filenames_string_is_rejected (line 2257) | fn pass_filenames_string_is_rejected() { FILE: crates/prek/src/fs.rs type LockedFile (line 54) | pub struct LockedFile { method lock_file_blocking (line 61) | fn lock_file_blocking( method acquire (line 100) | pub async fn acquire( method drop (line 175) | fn drop(&mut self) { function normalize_path (line 198) | pub(crate) fn normalize_path(path: PathBuf) -> PathBuf { function normalize_path (line 206) | pub(crate) fn normalize_path(path: PathBuf) -> PathBuf { function relative_to (line 235) | pub fn relative_to( type Simplified (line 265) | pub trait Simplified { method simplified (line 269) | fn simplified(&self) -> &Path; method simplified_display (line 275) | fn simplified_display(&self) -> impl Display; method user_display (line 280) | fn user_display(&self) -> impl Display; method simplified (line 284) | fn simplified(&self) -> &Path { method simplified_display (line 288) | fn simplified_display(&self) -> impl Display { method user_display (line 292) | fn user_display(&self) -> impl Display { function lock_warning_suppressed_for_in_process_contention (line 313) | async fn lock_warning_suppressed_for_in_process_contention() { function lock_warning_emitted_when_forced_cross_process (line 355) | async fn lock_warning_emitted_when_forced_cross_process() { FILE: crates/prek/src/git.rs type Error (line 19) | pub(crate) enum Error { function git_cmd (line 72) | pub(crate) fn git_cmd(summary: &str) -> Result { function zsplit (line 79) | fn zsplit(s: &[u8]) -> Result, Utf8Error> { function intent_to_add_files (line 86) | pub(crate) async fn intent_to_add_files(root: &Path) -> Result Result,... function get_changed_files (line 116) | pub(crate) async fn get_changed_files( function ls_files (line 153) | pub(crate) async fn ls_files(cwd: &Path, path: &Path) -> Result Result { function get_git_common_dir (line 179) | pub(crate) async fn get_git_common_dir() -> Result { function get_staged_files (line 195) | pub(crate) async fn get_staged_files(root: &Path) -> Result... function files_not_staged (line 210) | pub(crate) async fn files_not_staged(files: &[&Path]) -> Result Result { function has_diff (line 239) | pub(crate) async fn has_diff(rev: &str, path: &Path) -> Result { function is_in_merge_conflict (line 251) | pub(crate) async fn is_in_merge_conflict() -> Result { function get_conflicted_files (line 256) | pub(crate) async fn get_conflicted_files(root: &Path) -> Result Result, Error> { function get_diff (line 302) | pub(crate) async fn get_diff(path: &Path) -> Result, Error> { function write_tree (line 320) | pub(crate) async fn write_tree() -> Result { function get_root (line 333) | pub(crate) fn get_root() -> Result { function init_repo (line 354) | pub(crate) async fn init_repo(url: &str, path: &Path) -> Result<(), Erro... type TerminalPrompt (line 394) | pub(crate) enum TerminalPrompt { method env_value (line 400) | fn env_value(self) -> &'static str { function is_auth_error (line 409) | pub(crate) fn is_auth_error(err: &Error) -> bool { function shallow_clone (line 436) | async fn shallow_clone( function full_clone (line 487) | async fn full_clone(rev: &str, path: &Path, terminal_prompt: TerminalPro... function clone_repo_attempt (line 528) | async fn clone_repo_attempt( function clone_repo (line 547) | pub(crate) async fn clone_repo( function has_hooks_path_set (line 557) | pub(crate) async fn has_hooks_path_set() -> Result { function shared_repository_file_mode (line 576) | fn shared_repository_file_mode(value: &str, mode: u32) -> Option { function get_shared_repository_file_mode (line 621) | pub(crate) async fn get_shared_repository_file_mode(mode: u32) -> Result... function get_lfs_files (line 637) | pub(crate) async fn get_lfs_files(paths: &[&Path]) -> Result Result { function get_ancestors_not_in_remote (line 712) | pub(crate) async fn get_ancestors_not_in_remote( function get_root_commits (line 734) | pub(crate) async fn get_root_commits(local_sha: &str) -> Result Result Result, E... function shared_repository_group_mode_matches_git_behavior (line 796) | fn shared_repository_group_mode_matches_git_behavior() { function shared_repository_everybody_mode_matches_git_behavior (line 803) | fn shared_repository_everybody_mode_matches_git_behavior() { function shared_repository_octal_mode_matches_git_behavior (line 810) | fn shared_repository_octal_mode_matches_git_behavior() { function shared_repository_umask_or_invalid_values_do_not_override_mode (line 816) | fn shared_repository_umask_or_invalid_values_do_not_override_mode() { FILE: crates/prek/src/hook.rs type Error (line 27) | pub(crate) enum Error { type HookSpec (line 51) | pub(crate) struct HookSpec { method apply_remote_hook_overrides (line 61) | pub(crate) fn apply_remote_hook_overrides(&mut self, config: &RemoteHo... method apply_project_defaults (line 78) | pub(crate) fn apply_project_defaults(&mut self, config: &Config) { method from (line 94) | fn from(hook: ManifestHook) -> Self { method from (line 107) | fn from(hook: LocalHook) -> Self { method from (line 120) | fn from(hook: MetaHook) -> Self { method from (line 133) | fn from(hook: BuiltinHook) -> Self { type Repo (line 146) | pub(crate) enum Repo { method remote (line 167) | pub(crate) fn remote(url: String, rev: String, path: PathBuf) -> Resul... method local (line 184) | pub(crate) fn local(hooks: Vec) -> Self { method meta (line 191) | pub(crate) fn meta(hooks: Vec) -> Self { method builtin (line 198) | pub(crate) fn builtin(hooks: Vec) -> Self { method path (line 205) | pub(crate) fn path(&self) -> Option<&Path> { method get_hook (line 213) | pub(crate) fn get_hook(&self, id: &str) -> Option<&HookSpec> { method fmt (line 225) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { type HookBuilder (line 235) | pub(crate) struct HookBuilder { method new (line 244) | pub(crate) fn new( method check (line 259) | fn check(&self) -> Result<(), Error> { method build (line 312) | pub(crate) async fn build(mut self) -> Result { type Entry (line 396) | pub(crate) struct Entry { method new (line 402) | pub(crate) fn new(hook: String, entry: String) -> Self { method resolve (line 407) | pub(crate) fn resolve(&self, env_path: Option<&OsStr>) -> Result Result, Error> { method raw (line 429) | pub(crate) fn raw(&self) -> &str { type Hook (line 436) | pub(crate) struct Hook { method project (line 481) | pub(crate) fn project(&self) -> &Project { method repo (line 485) | pub(crate) fn repo(&self) -> &Repo { method repo_path (line 490) | pub(crate) fn repo_path(&self) -> Option<&Path> { method full_id (line 494) | pub(crate) fn full_id(&self) -> String { method work_dir (line 504) | pub(crate) fn work_dir(&self) -> &Path { method is_remote (line 508) | pub(crate) fn is_remote(&self) -> bool { method env_key_dependencies (line 516) | pub(crate) fn env_key_dependencies(&self) -> &FxHashSet { method env_key (line 528) | pub(crate) fn env_key(&self) -> Option> { method install_dependencies (line 544) | pub(crate) fn install_dependencies(&self) -> Cow<'_, FxHashSet> { method fmt (line 471) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { type HookEnvKey (line 556) | pub(crate) struct HookEnvKey { method from_hook_spec (line 607) | pub(crate) fn from_hook_spec( method matches_install_info (line 647) | pub(crate) fn matches_install_info(&self, info: &InstallInfo) -> bool { type HookEnvKeyRef (line 565) | pub(crate) struct HookEnvKeyRef<'a> { function env_key_dependencies (line 575) | fn env_key_dependencies( function matches_install_info (line 592) | fn matches_install_info( function matches_install_info (line 659) | pub(crate) fn matches_install_info(&self, info: &InstallInfo) -> bool { type InstalledHook (line 670) | pub(crate) enum InstalledHook { method env_path (line 700) | pub(crate) fn env_path(&self) -> Option<&Path> { method toolchain_dir (line 708) | pub(crate) fn toolchain_dir(&self) -> Option<&Path> { method install_info (line 716) | pub(crate) fn install_info(&self) -> Option<&InstallInfo> { method mark_as_installed (line 724) | pub(crate) async fn mark_as_installed(&self, _store: &Store) -> Result... type Target (line 679) | type Target = Hook; method deref (line 681) | fn deref(&self) -> &Self::Target { method fmt (line 690) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { constant HOOK_MARKER (line 696) | pub(crate) const HOOK_MARKER: &str = ".prek-hook.json"; type InstallInfo (line 741) | pub(crate) struct InstallInfo { method new (line 767) | pub(crate) fn new( method persist_env_path (line 788) | pub(crate) fn persist_env_path(&mut self) { method from_env_path (line 794) | pub(crate) async fn from_env_path(path: &Path) -> Result { method check_health (line 801) | pub(crate) async fn check_health(&self) -> Result<()> { method with_language_version (line 805) | pub(crate) fn with_language_version(&mut self, version: semver::Versio... method with_toolchain (line 810) | pub(crate) fn with_toolchain(&mut self, toolchain: PathBuf) -> &mut Se... method with_extra (line 815) | pub(crate) fn with_extra(&mut self, key: &str, value: &str) -> &mut Se... method get_extra (line 820) | pub(crate) fn get_extra(&self, key: &str) -> Option<&String> { method matches (line 824) | pub(crate) fn matches(&self, hook: &Hook) -> bool { method clone (line 753) | fn clone(&self) -> Self { function hook_builder_build_fills_and_merges_attributes (line 849) | async fn hook_builder_build_fills_and_merges_attributes() -> Result<()> { function hook_builder_empty_hook_stages_inherit_default_stages (line 1004) | async fn hook_builder_empty_hook_stages_inherit_default_stages() -> Resu... function hook_spec_apply_project_defaults_sets_explicit_all_when_default_stages_missing (line 1039) | fn hook_spec_apply_project_defaults_sets_explicit_all_when_default_stage... function hook_builder_preserves_explicit_empty_default_stages (line 1057) | async fn hook_builder_preserves_explicit_empty_default_stages() -> Resul... function hook_builder_defaults_to_all_when_stages_and_default_stages_missing (line 1086) | async fn hook_builder_defaults_to_all_when_stages_and_default_stages_mis... function hook_builder_empty_hook_stages_default_to_all_when_default_stages_missing (line 1115) | async fn hook_builder_empty_hook_stages_default_to_all_when_default_stag... function setup_python_hook_test (line 1149) | fn setup_python_hook_test() -> Result<(tempfile::TempDir, Arc)> { function build_python_hook (line 1166) | async fn build_python_hook( function hook_builder_python_pep723_overrides_user_and_pyproject (line 1203) | async fn hook_builder_python_pep723_overrides_user_and_pyproject() -> Re... function hook_builder_python_user_language_version_overrides_pyproject (line 1222) | async fn hook_builder_python_user_language_version_overrides_pyproject()... function hook_builder_python_pep723_overrides_pyproject_without_user_version (line 1241) | async fn hook_builder_python_pep723_overrides_pyproject_without_user_ver... function hook_builder_python_defaults_to_any_without_version_sources (line 1260) | async fn hook_builder_python_defaults_to_any_without_version_sources() -... function hook_builder_python_pyproject_provides_version_when_no_other_source (line 1272) | async fn hook_builder_python_pyproject_provides_version_when_no_other_so... FILE: crates/prek/src/hooks/builtin_hooks/check_json5.rs function check_json5 (line 8) | pub(crate) async fn check_json5( function check_file (line 18) | async fn check_file(file_base: &Path, filename: &Path) -> anyhow::Result... function create_test_file (line 40) | async fn create_test_file( function test_valid_json5 (line 51) | async fn test_valid_json5() -> anyhow::Result<()> { function test_duplicate_keys (line 78) | async fn test_duplicate_keys() -> anyhow::Result<()> { function test_invalid_json5 (line 98) | async fn test_invalid_json5() -> anyhow::Result<()> { FILE: crates/prek/src/hooks/builtin_hooks/mod.rs type BuiltinHooks (line 29) | pub(crate) enum BuiltinHooks { method run (line 49) | pub(crate) async fn run( method from_id (line 91) | pub(crate) fn from_id(id: &str) -> Result { FILE: crates/prek/src/hooks/meta_hooks.rs type MetaHooks (line 27) | pub(crate) enum MetaHooks { method run (line 34) | pub(crate) async fn run( method from_id (line 53) | pub(crate) fn from_id(id: &str) -> Result { function check_hooks_apply (line 92) | pub(crate) async fn check_hooks_apply( function excludes_any (line 139) | fn excludes_any( function check_useless_excludes (line 168) | pub(crate) async fn check_useless_excludes( function identity (line 257) | pub fn identity(_hook: &Hook, filenames: &[&Path]) -> (i32, Vec) { function regex_pattern (line 273) | fn regex_pattern(pattern: &str) -> FilePattern { function test_excludes_any (line 278) | fn test_excludes_any() { function meta_hook_patterns_cover_config_files (line 299) | fn meta_hook_patterns_cover_config_files() { FILE: crates/prek/src/hooks/mod.rs function check_fast_path (line 22) | pub fn check_fast_path(hook: &Hook) -> bool { function run_fast_path (line 38) | pub async fn run_fast_path( function run_concurrent_file_checks (line 61) | pub(crate) async fn run_concurrent_file_checks<'a, I, F, Fut>( FILE: crates/prek/src/hooks/pre_commit_hooks/check_added_large_files.rs type FileFilter (line 11) | enum FileFilter { method contains (line 17) | fn contains(&self, path: &Path) -> bool { type Args (line 29) | struct Args { function check_added_large_files (line 36) | pub(crate) async fn check_added_large_files( FILE: crates/prek/src/hooks/pre_commit_hooks/check_case_conflict.rs function check_case_conflict (line 11) | pub(crate) async fn check_case_conflict( function insert_path_and_parents (line 99) | fn insert_path_and_parents<'p>(set: &mut FxHashSet<&'p Path>, file: &'p ... function lower_key (line 112) | fn lower_key(path: &Path) -> String { function test_insert_path_and_parents (line 121) | fn test_insert_path_and_parents() { function test_insert_path_and_parents_nested (line 136) | fn test_insert_path_and_parents_nested() { function test_insert_path_and_parents_no_slash (line 152) | fn test_insert_path_and_parents_no_slash() { function test_lower_key (line 159) | fn test_lower_key() { FILE: crates/prek/src/hooks/pre_commit_hooks/check_executables_have_shebangs.rs function check_executables_have_shebangs (line 13) | pub(crate) async fn check_executables_have_shebangs( function os_check_shebangs (line 40) | async fn os_check_shebangs( function print_shebang_warning (line 57) | fn print_shebang_warning(path: &Path) -> String { function git_check_shebangs (line 76) | async fn git_check_shebangs( function file_has_shebang (line 147) | async fn file_has_shebang(path: &Path) -> Result { function test_file_with_shebang (line 160) | async fn test_file_with_shebang() -> Result<(), anyhow::Error> { function test_file_without_shebang (line 169) | async fn test_file_without_shebang() -> Result<(), anyhow::Error> { function test_empty_file (line 178) | async fn test_empty_file() -> Result<(), anyhow::Error> { function test_file_with_partial_shebang (line 187) | async fn test_file_with_partial_shebang() -> Result<(), anyhow::Error> { function test_file_with_shebang_and_spaces (line 195) | async fn test_file_with_shebang_and_spaces() -> Result<(), anyhow::Error> { function test_file_with_non_shebang_start (line 203) | async fn test_file_with_non_shebang_start() -> Result<(), anyhow::Error> { function test_os_check_shebangs_with_shebang (line 211) | async fn test_os_check_shebangs_with_shebang() -> Result<(), anyhow::Err... function test_os_check_shebangs_without_shebang (line 223) | async fn test_os_check_shebangs_without_shebang() -> Result<(), anyhow::... FILE: crates/prek/src/hooks/pre_commit_hooks/check_json.rs type JsonValue (line 12) | pub(crate) enum JsonValue { method deserialize (line 66) | fn deserialize(deserializer: D) -> Result function check_json (line 21) | pub(crate) async fn check_json(hook: &Hook, filenames: &[&Path]) -> Resu... function check_file (line 28) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function carefully_drop_nested_json (line 53) | fn carefully_drop_nested_json(value: JsonValue) { function create_test_file (line 147) | async fn create_test_file( function test_valid_json (line 158) | async fn test_valid_json() -> Result<()> { function test_invalid_json (line 170) | async fn test_invalid_json() -> Result<()> { function test_duplicate_keys (line 182) | async fn test_duplicate_keys() -> Result<()> { function test_empty_json (line 194) | async fn test_empty_json() -> Result<()> { function test_valid_json_array (line 206) | async fn test_valid_json_array() -> Result<()> { function test_duplicate_keys_in_nested_object (line 218) | async fn test_duplicate_keys_in_nested_object() -> Result<()> { function test_recursion_limit (line 230) | async fn test_recursion_limit() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs constant CONFLICT_PATTERNS (line 12) | const CONFLICT_PATTERNS: &[&[u8]] = &[ type Args (line 24) | struct Args { function check_merge_conflict (line 29) | pub(crate) async fn check_merge_conflict( function is_in_merge (line 46) | async fn is_in_merge() -> Result { function check_file (line 62) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function create_test_file (line 109) | async fn create_test_file( function test_no_conflict_markers (line 120) | async fn test_no_conflict_markers() -> Result<()> { function test_conflict_marker_start (line 131) | async fn test_conflict_marker_start() -> Result<()> { function test_conflict_marker_middle (line 145) | async fn test_conflict_marker_middle() -> Result<()> { function test_conflict_marker_end (line 158) | async fn test_conflict_marker_end() -> Result<()> { function test_full_conflict_block (line 171) | async fn test_full_conflict_block() -> Result<()> { function test_conflict_marker_not_at_start (line 187) | async fn test_conflict_marker_not_at_start() -> Result<()> { function test_conflict_marker_crlf (line 199) | async fn test_conflict_marker_crlf() -> Result<()> { function test_conflict_marker_lf (line 210) | async fn test_conflict_marker_lf() -> Result<()> { function test_empty_file (line 221) | async fn test_empty_file() -> Result<()> { function test_multiple_conflicts (line 232) | async fn test_multiple_conflicts() -> Result<()> { function test_binary_file_with_conflict (line 246) | async fn test_binary_file_with_conflict() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/check_symlinks.rs function check_symlinks (line 9) | pub(crate) async fn check_symlinks(hook: &Hook, filenames: &[&Path]) -> ... function check_file (line 17) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function create_test_file (line 35) | async fn create_test_file( function test_regular_file (line 46) | async fn test_regular_file() -> Result<()> { function test_valid_symlink_unix (line 58) | async fn test_valid_symlink_unix() -> Result<()> { function test_broken_symlink_unix (line 72) | async fn test_broken_symlink_unix() -> Result<()> { function test_valid_symlink_windows (line 88) | async fn test_valid_symlink_windows() -> Result<()> { function test_broken_symlink_windows (line 107) | async fn test_broken_symlink_windows() -> Result<()> { function test_valid_symlink_macos (line 132) | async fn test_valid_symlink_macos() -> Result<()> { function test_broken_symlink_macos (line 146) | async fn test_broken_symlink_macos() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/check_toml.rs function check_toml (line 9) | pub(crate) async fn check_toml(hook: &Hook, filenames: &[&Path]) -> Resu... function check_file (line 16) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function create_test_file (line 54) | async fn create_test_file( function test_valid_toml (line 65) | async fn test_valid_toml() -> Result<()> { function test_invalid_toml (line 78) | async fn test_invalid_toml() -> Result<()> { function test_duplicate_keys (line 91) | async fn test_duplicate_keys() -> Result<()> { function test_empty_toml (line 104) | async fn test_empty_toml() -> Result<()> { function test_multiple_errors_reported (line 115) | async fn test_multiple_errors_reported() -> Result<()> { function test_invalid_utf8 (line 136) | async fn test_invalid_utf8() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/check_xml.rs function check_xml (line 9) | pub(crate) async fn check_xml(hook: &Hook, filenames: &[&Path]) -> Resul... function check_file (line 16) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function create_test_file (line 73) | async fn create_test_file( function test_valid_xml (line 84) | async fn test_valid_xml() -> Result<()> { function test_invalid_xml_unclosed_tag (line 98) | async fn test_invalid_xml_unclosed_tag() -> Result<()> { function test_invalid_xml_mismatched_tags (line 114) | async fn test_invalid_xml_mismatched_tags() -> Result<()> { function test_invalid_xml_syntax_error (line 128) | async fn test_invalid_xml_syntax_error() -> Result<()> { function test_empty_xml (line 142) | async fn test_empty_xml() -> Result<()> { function test_valid_xml_with_attributes (line 155) | async fn test_valid_xml_with_attributes() -> Result<()> { function test_valid_xml_with_cdata (line 170) | async fn test_valid_xml_with_cdata() -> Result<()> { function test_valid_xml_with_comments (line 184) | async fn test_valid_xml_with_comments() -> Result<()> { function test_xml_with_doctype (line 200) | async fn test_xml_with_doctype() -> Result<()> { function test_invalid_xml_no_root (line 215) | async fn test_invalid_xml_no_root() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/check_yaml.rs type Args (line 14) | struct Args { function check_yaml (line 22) | pub(crate) async fn check_yaml(hook: &Hook, filenames: &[&Path]) -> Resu... function check_file (line 35) | async fn check_file( function create_test_file (line 85) | async fn create_test_file( function test_valid_yaml (line 96) | async fn test_valid_yaml() -> Result<()> { function test_invalid_yaml (line 109) | async fn test_invalid_yaml() -> Result<()> { function test_duplicate_keys (line 122) | async fn test_duplicate_keys() -> Result<()> { function test_empty_yaml (line 135) | async fn test_empty_yaml() -> Result<()> { function test_multiple_documents (line 146) | async fn test_multiple_documents() -> Result<()> { function test_yaml_with_binary_scalar (line 167) | async fn test_yaml_with_binary_scalar() -> Result<()> { function test_yaml_with_many_aliases_and_few_anchors (line 191) | async fn test_yaml_with_many_aliases_and_few_anchors() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/detect_private_key.rs constant BLACKLIST (line 12) | const BLACKLIST: &[&[u8]] = &[ constant BUFFER_SIZE (line 24) | const BUFFER_SIZE: usize = 8192; constant CARRY_CAPACITY (line 27) | const CARRY_CAPACITY: usize = { function detect_private_key (line 44) | pub(crate) async fn detect_private_key(hook: &Hook, filenames: &[&Path])... function check_file (line 56) | async fn check_file(file_base: &Path, filename: &Path) -> Result<(i32, V... function create_test_file (line 92) | async fn create_test_file( function test_no_private_key (line 103) | async fn test_no_private_key() -> Result<()> { function test_rsa_private_key (line 114) | async fn test_rsa_private_key() -> Result<()> { function test_key_in_middle_of_file (line 127) | async fn test_key_in_middle_of_file() -> Result<()> { function test_false_positive_similar_text (line 138) | async fn test_false_positive_similar_text() -> Result<()> { function test_empty_file (line 149) | async fn test_empty_file() -> Result<()> { function test_binary_file_with_key (line 160) | async fn test_binary_file_with_key() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/fix_byte_order_marker.rs constant UTF8_BOM (line 10) | const UTF8_BOM: &[u8] = b"\xef\xbb\xbf"; constant BUFFER_SIZE (line 11) | const BUFFER_SIZE: usize = 8192; function fix_byte_order_marker (line 13) | pub(crate) async fn fix_byte_order_marker( function fix_file (line 23) | async fn fix_file(file_base: &Path, filename: &Path) -> Result<(i32, Vec... function shift_file_left (line 56) | async fn shift_file_left(file: &mut fs_err::tokio::File, offset: u64) ->... function create_test_file (line 84) | async fn create_test_file( function test_file_with_bom (line 95) | async fn test_file_with_bom() -> Result<()> { function test_file_without_bom (line 113) | async fn test_file_without_bom() -> Result<()> { function test_empty_file (line 130) | async fn test_empty_file() -> Result<()> { function test_file_shorter_than_bom (line 147) | async fn test_file_shorter_than_bom() -> Result<()> { function test_file_with_partial_bom (line 164) | async fn test_file_with_partial_bom() -> Result<()> { function test_bom_only_file (line 181) | async fn test_bom_only_file() -> Result<()> { function test_utf8_content_with_bom (line 199) | async fn test_utf8_content_with_bom() -> Result<()> { function test_large_file_streaming (line 221) | async fn test_large_file_streaming() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/fix_end_of_file.rs function fix_end_of_file (line 10) | pub(crate) async fn fix_end_of_file(hook: &Hook, filenames: &[&Path]) ->... function fix_file (line 17) | async fn fix_file(file_base: &Path, filename: &Path) -> Result<(i32, Vec... function determine_line_ending (line 60) | fn determine_line_ending(first: u8, second: u8) -> Option<&'static str> { function find_last_non_ending (line 74) | async fn find_last_non_ending(reader: &mut T) -> Result<(Option,... function create_test_file (line 129) | async fn create_test_file( function test_no_line_ending_1 (line 140) | async fn test_no_line_ending_1() -> Result<()> { function test_already_has_correct_windows_ending (line 175) | async fn test_already_has_correct_windows_ending() -> Result<()> { function test_already_has_correct_unix_ending (line 193) | async fn test_already_has_correct_unix_ending() -> Result<()> { function test_empty_file (line 211) | async fn test_empty_file() -> Result<()> { function test_excess_newlines_removal (line 229) | async fn test_excess_newlines_removal() -> Result<()> { function test_excess_crlf_removal (line 247) | async fn test_excess_crlf_removal() -> Result<()> { function test_all_newlines_make_empty (line 265) | async fn test_all_newlines_make_empty() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/fix_trailing_whitespace.rs constant MARKDOWN_LINE_BREAK (line 13) | const MARKDOWN_LINE_BREAK: &[u8] = b" "; type Chars (line 16) | struct Chars(Vec); type Err (line 19) | type Err = String; method from_str (line 20) | fn from_str(s: &str) -> Result { type Target (line 26) | type Target = Vec; method deref (line 27) | fn deref(&self) -> &Self::Target { type Args (line 36) | struct Args { method markdown_exts (line 46) | fn markdown_exts(&self) -> Result> { method force_markdown (line 66) | fn force_markdown(&self) -> bool { function fix_trailing_whitespace (line 71) | pub(crate) async fn fix_trailing_whitespace( function fix_file (line 97) | async fn fix_file( function detect_line_ending (line 150) | fn detect_line_ending(line: &[u8]) -> &[u8] { function needs_markdown_break (line 162) | fn needs_markdown_break(is_markdown: bool, trimmed: &[u8]) -> bool { function create_test_file (line 175) | async fn create_test_file(dir: &TempDir, name: &str, content: &[u8]) -> ... function test_trim_non_markdown_trims_spaces (line 182) | async fn test_trim_non_markdown_trims_spaces() -> Result<()> { function test_markdown_preserve_two_spaces_and_reduce_extra (line 206) | async fn test_markdown_preserve_two_spaces_and_reduce_extra() -> Result<... function test_force_markdown_obeys_markdown_rules (line 231) | async fn test_force_markdown_obeys_markdown_rules() -> Result<()> { function test_no_changes_returns_zero_and_no_write (line 257) | async fn test_no_changes_returns_zero_and_no_write() -> Result<()> { function test_empty_file_no_change (line 275) | async fn test_empty_file_no_change() -> Result<()> { function test_only_whitespace_lines_are_handled_not_markdown_end (line 291) | async fn test_only_whitespace_lines_are_handled_not_markdown_end() -> Re... function test_chars_empty_uses_trim_ascii_end (line 310) | async fn test_chars_empty_uses_trim_ascii_end() -> Result<()> { function test_crlf_lines_handling (line 328) | async fn test_crlf_lines_handling() -> Result<()> { function test_no_newline_at_eof (line 347) | async fn test_no_newline_at_eof() -> Result<()> { function test_unicode_trim_char (line 365) | async fn test_unicode_trim_char() -> Result<()> { function test_extension_case_insensitive_matching (line 382) | async fn test_extension_case_insensitive_matching() -> Result<()> { function test_mixed_lines_modified_flag_true_if_any_changed (line 400) | async fn test_mixed_lines_modified_flag_true_if_any_changed() -> Result<... function test_no_change_no_newline_at_eof (line 417) | async fn test_no_change_no_newline_at_eof() -> Result<()> { function test_markdown_wildcard_ext_and_eof_whitespace_removed (line 435) | async fn test_markdown_wildcard_ext_and_eof_whitespace_removed() -> Resu... function test_markdown_with_custom_charset (line 453) | async fn test_markdown_with_custom_charset() -> Result<()> { function test_eol_trim (line 470) | async fn test_eol_trim() -> Result<()> { function test_markdown_trim (line 487) | async fn test_markdown_trim() -> Result<()> { function test_invalid_utf8_file_is_handled (line 504) | async fn test_invalid_utf8_file_is_handled() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/mixed_line_ending.rs constant CRLF (line 12) | const CRLF: &[u8] = b"\r\n"; constant LF (line 13) | const LF: &[u8] = b"\n"; constant CR (line 14) | const CR: &[u8] = b"\r"; constant ALL_ENDINGS (line 15) | const ALL_ENDINGS: [&[u8]; 3] = [CR, CRLF, LF]; type Args (line 21) | struct Args { type FixMode (line 30) | enum FixMode { function mixed_line_ending (line 44) | pub(crate) async fn mixed_line_ending(hook: &Hook, filenames: &[&Path]) ... function fix_file (line 54) | async fn fix_file(file_base: &Path, filename: &Path, fix_mode: FixMode) ... function count_line_endings (line 105) | fn count_line_endings(contents: &[u8]) -> FxHashMap<&'static [u8], usize> { function find_most_common_ending (line 124) | fn find_most_common_ending(counts: &FxHashMap<&'static [u8], usize>) -> ... function apply_line_ending (line 132) | async fn apply_line_ending(filename: &Path, contents: &[u8], ending: &[u... function strip_line_ending (line 146) | fn strip_line_ending(line: &[u8]) -> &[u8] { function split_lines_with_endings (line 156) | fn split_lines_with_endings(contents: &[u8]) -> Vec<&[u8]> { function create_test_file (line 204) | async fn create_test_file( function test_auto_fix_crlf_wins (line 215) | async fn test_auto_fix_crlf_wins() -> Result<()> { function test_auto_fix_lf_wins (line 229) | async fn test_auto_fix_lf_wins() -> Result<()> { function test_auto_fix_tie_prefers_lf (line 243) | async fn test_auto_fix_tie_prefers_lf() -> Result<()> { function test_fix_no (line 257) | async fn test_fix_no() -> Result<()> { function test_no_line_endings (line 271) | async fn test_no_line_endings() -> Result<()> { function test_fix_with_cr_endings (line 283) | async fn test_fix_with_cr_endings() -> Result<()> { FILE: crates/prek/src/hooks/pre_commit_hooks/mod.rs type PreCommitHooks (line 43) | pub(crate) enum PreCommitHooks { method check_supported (line 62) | pub(crate) fn check_supported(&self, hook: &Hook) -> bool { method run (line 70) | pub(crate) async fn run(self, hook: &Hook, filenames: &[&Path]) -> Res... function is_pre_commit_hooks (line 95) | pub(crate) fn is_pre_commit_hooks(url: &str) -> bool { FILE: crates/prek/src/hooks/pre_commit_hooks/no_commit_to_branch.rs type Args (line 12) | struct Args { method check_protected (line 20) | fn check_protected(&self, branch: &str) -> Result { function no_commit_to_branch (line 42) | pub(crate) async fn no_commit_to_branch(hook: &Hook) -> Result<(i32, Vec... FILE: crates/prek/src/http.rs function download_and_extract (line 16) | pub(crate) async fn download_and_extract( function download_and_extract_with (line 28) | pub(crate) async fn download_and_extract_with( function load_pem_certs_from_file (line 87) | fn load_pem_certs_from_file(path: &Path) -> Result> { function load_pem_certs_from_dir (line 95) | fn load_pem_certs_from_dir(dir: &Path) -> Result> { function load_certs_from_paths (line 124) | fn load_certs_from_paths(file: Option<&Path>, dirs: &[impl AsRef])... function create_reqwest_client (line 155) | fn create_reqwest_client(native_tls: bool, custom_certs: Vec anyhow::Result<()> { function invalid_container_id_from_cgroup_v1 (line 588) | fn invalid_container_id_from_cgroup_v1() -> anyhow::Result<()> { function test_container_id_from_cgroup_v2 (line 609) | fn test_container_id_from_cgroup_v2() -> anyhow::Result<()> { function test_current_container_id_prefers_cgroup_v1 (line 651) | fn test_current_container_id_prefers_cgroup_v1() -> anyhow::Result<()> { function test_current_container_id_falls_back_to_cgroup_v2 (line 666) | fn test_current_container_id_falls_back_to_cgroup_v2() -> anyhow::Result... function test_current_container_id_errors_when_no_match (line 681) | fn test_current_container_id_errors_when_no_match() -> anyhow::Result<()> { function test_detect_container_runtime (line 694) | fn test_detect_container_runtime() { FILE: crates/prek/src/languages/docker_image.rs type DockerImage (line 15) | pub(crate) struct DockerImage; method install (line 18) | async fn install( method check_health (line 27) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 31) | async fn run( FILE: crates/prek/src/languages/fail.rs type Fail (line 13) | pub(crate) struct Fail; method install (line 16) | async fn install( method check_health (line 25) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 29) | async fn run( FILE: crates/prek/src/languages/golang/golang.rs type Golang (line 21) | pub(crate) struct Golang; method install (line 24) | async fn install( method check_health (line 116) | async fn check_health(&self, _info: &InstallInfo) -> anyhow::Result<()> { method run (line 120) | async fn run( function bin_dir (line 186) | pub(crate) fn bin_dir(env_path: &Path) -> PathBuf { FILE: crates/prek/src/languages/golang/gomod.rs function parse_go_mod_directives (line 11) | fn parse_go_mod_directives(contents: &str) -> (Option, Option String { function choose_language_version_from_go_mod (line 85) | fn choose_language_version_from_go_mod(contents: &str) -> Option { function extract_go_mod_language_request (line 95) | async fn extract_go_mod_language_request(repo_path: &Path) -> Result Result<(... function go_line_is_used_when_only_go_present (line 142) | fn go_line_is_used_when_only_go_present() { function go_is_preferred_over_toolchain (line 154) | fn go_is_preferred_over_toolchain() { function invalid_toolchain_value_is_ignored (line 167) | fn invalid_toolchain_value_is_ignored() { function comments_and_whitespace_are_ignored (line 179) | fn comments_and_whitespace_are_ignored() { function toolchain_is_used_when_no_go_present (line 193) | fn toolchain_is_used_when_no_go_present() { function go_minor_is_normalized_to_patch (line 205) | fn go_minor_is_normalized_to_patch() { function extract_language_request_from_repo_go_line (line 217) | async fn extract_language_request_from_repo_go_line() -> anyhow::Result<... function extract_language_request_from_repo_toolchain_when_no_go (line 234) | async fn extract_language_request_from_repo_toolchain_when_no_go() -> an... function extract_language_request_ignores_invalid_toolchain_value (line 251) | async fn extract_language_request_ignores_invalid_toolchain_value() -> a... function extract_language_request_missing_go_mod_is_none (line 265) | async fn extract_language_request_missing_go_mod_is_none() -> anyhow::Re... FILE: crates/prek/src/languages/golang/installer.rs type GoResult (line 22) | pub(crate) struct GoResult { method from_executable (line 45) | fn from_executable(path: PathBuf, from_system: bool) -> Self { method from_dir (line 53) | pub(crate) fn from_dir(dir: &Path, from_system: bool) -> Self { method bin (line 58) | pub(crate) fn bin(&self) -> &Path { method version (line 62) | pub(crate) fn version(&self) -> &GoVersion { method is_from_system (line 66) | pub(crate) fn is_from_system(&self) -> bool { method cmd (line 70) | pub(crate) fn cmd(&self, summary: &str) -> Cmd { method with_version (line 74) | pub(crate) fn with_version(mut self, version: GoVersion) -> Self { method fill_version (line 79) | pub(crate) async fn fill_version(mut self) -> Result { method fmt (line 29) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type GoInstaller (line 102) | pub(crate) struct GoInstaller { method new (line 107) | pub(crate) fn new(root: PathBuf) -> Self { method install (line 111) | pub(crate) async fn install( method find_installed (line 144) | fn find_installed(&self, request: &GoRequest) -> Result { method resolve_version (line 178) | async fn resolve_version(&self, req: &GoRequest) -> Result { method download (line 204) | async fn download(&self, store: &Store, version: &GoVersion) -> Result... method find_system_go (line 250) | async fn find_system_go(&self, go_request: &GoRequest) -> Result anyhow::Result<()> { FILE: crates/prek/src/languages/golang/version.rs type GoVersion (line 12) | pub(crate) struct GoVersion(semver::Version); method default (line 15) | fn default() -> Self { type Target (line 21) | type Target = semver::Version; method deref (line 23) | fn deref(&self) -> &Self::Target { method fmt (line 29) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Err (line 35) | type Err = semver::Error; method from_str (line 38) | fn from_str(s: &str) -> Result { type GoRequest (line 56) | pub(crate) enum GoRequest { method is_any (line 118) | pub(crate) fn is_any(&self) -> bool { method parse_version_numbers (line 122) | fn parse_version_numbers( method satisfied_by (line 137) | pub(crate) fn satisfied_by(&self, install_info: &InstallInfo) -> bool { method matches (line 146) | pub(crate) fn matches(&self, version: &GoVersion, toolchain: Option<&P... method fmt (line 68) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Err (line 83) | type Err = Error; method from_str (line 85) | fn from_str(s: &str) -> Result { function test_go_request_from_str (line 168) | fn test_go_request_from_str() { function test_go_request_invalid (line 194) | fn test_go_request_invalid() { function test_go_request_matches (line 203) | fn test_go_request_matches() { function test_go_request_display (line 236) | fn test_go_request_display() { FILE: crates/prek/src/languages/haskell.rs type Haskell (line 23) | pub(crate) struct Haskell; method install (line 26) | async fn install( method check_health (line 107) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 111) | async fn run( FILE: crates/prek/src/languages/julia.rs type Julia (line 16) | pub(crate) struct Julia; method install (line 19) | async fn install( method check_health (line 90) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 100) | async fn run( FILE: crates/prek/src/languages/lua.rs type Lua (line 19) | pub(crate) struct Lua; method install_rockspec (line 187) | async fn install_rockspec(env_path: &Path, root_path: &Path, rockspec:... method install_dependency (line 201) | async fn install_dependency(env_path: &Path, dependency: &str) -> Resu... method get_rockspec_file (line 214) | fn get_rockspec_file(root_path: &Path) -> Option { method get_lua_path (line 226) | fn get_lua_path(env_dir: &Path, version: &str) -> String { method get_lua_cpath (line 240) | fn get_lua_cpath(env_dir: &Path, version: &str) -> String { type LuaInfo (line 21) | pub(crate) struct LuaInfo { function query_lua_info (line 26) | pub(crate) async fn query_lua_info() -> Result { method install (line 58) | async fn install( method check_health (line 102) | async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 126) | async fn run( FILE: crates/prek/src/languages/mod.rs type LanguageImpl (line 56) | trait LanguageImpl { method install (line 57) | async fn install( method check_health (line 64) | async fn check_health(&self, info: &InstallInfo) -> Result<()>; method run (line 66) | async fn run( method install (line 82) | async fn install( method check_health (line 91) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 95) | async fn run( type UnimplementedError (line 77) | struct UnimplementedError(String); type Unimplemented (line 79) | struct Unimplemented; method supported (line 130) | pub fn supported(lang: Language) -> bool { method supports_install_env (line 153) | pub fn supports_install_env(self) -> bool { method tool_buckets (line 160) | pub fn tool_buckets(self) -> &'static [ToolBucket] { method cache_buckets (line 173) | pub fn cache_buckets(self) -> &'static [CacheBucket] { method supports_language_version (line 186) | pub fn supports_language_version(self) -> bool { method supports_dependency (line 203) | pub fn supports_dependency(self) -> bool { method install (line 217) | pub async fn install( method check_health (line 245) | pub async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 269) | pub async fn run( function extract_metadata (line 322) | pub(crate) async fn extract_metadata(hook: &mut Hook) -> Result<()> { function resolve_command (line 331) | pub(crate) fn resolve_command(mut cmds: Vec, paths: Option<&OsSt... function write_file (line 389) | fn write_file(path: &Path, contents: &str) { function make_executable (line 394) | fn make_executable(path: &Path) { function make_executable (line 404) | fn make_executable(_path: &Path) {} function resolve_command_passthrough_when_not_found (line 407) | fn resolve_command_passthrough_when_not_found() { function resolve_command_resolves_shebang_interpreter_from_path (line 414) | fn resolve_command_resolves_shebang_interpreter_from_path() { function resolve_command_windows_rewrites_bin_sh_to_path_sh (line 442) | fn resolve_command_windows_rewrites_bin_sh_to_path_sh() { function resolve_command_windows_keeps_existing_absolute_interpreter_path (line 462) | fn resolve_command_windows_keeps_existing_absolute_interpreter_path() { FILE: crates/prek/src/languages/node/installer.rs type NodeResult (line 22) | pub(crate) struct NodeResult { method from_executables (line 45) | pub(crate) fn from_executables(node: PathBuf, npm: PathBuf) -> Self { method from_dir (line 53) | pub(crate) fn from_dir(dir: &Path) -> Self { method with_version (line 61) | pub(crate) fn with_version(mut self, version: NodeVersion) -> Self { method fill_version (line 66) | pub(crate) async fn fill_version(mut self) -> Result { method node (line 83) | pub(crate) fn node(&self) -> &Path { method npm (line 87) | pub(crate) fn npm(&self) -> &Path { method version (line 91) | pub(crate) fn version(&self) -> &NodeVersion { method fmt (line 29) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type NodeInstaller (line 96) | pub(crate) struct NodeInstaller { method new (line 101) | pub(crate) fn new(root: PathBuf) -> Self { method install (line 106) | pub(crate) async fn install( method find_installed (line 138) | fn find_installed(&self, req: &NodeRequest) -> Result { method resolve_version (line 170) | async fn resolve_version(&self, req: &NodeRequest) -> Result Result> { method download (line 192) | async fn download(&self, store: &Store, version: &NodeVersion) -> Resu... method find_system_node (line 239) | async fn find_system_node(&self, node_request: &NodeRequest) -> Result... method find_npm_in_same_directory (line 289) | fn find_npm_in_same_directory(node_path: &Path) -> Result PathBuf { function lib_dir (line 321) | pub(crate) fn lib_dir(prefix: &Path) -> PathBuf { function is_executable (line 329) | fn is_executable(path: &Path) -> bool { FILE: crates/prek/src/languages/node/node.rs type Node (line 23) | pub(crate) struct Node; method install (line 26) | async fn install( method check_health (line 119) | async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 136) | async fn run( FILE: crates/prek/src/languages/node/version.rs type Lts (line 12) | pub(crate) enum Lts { method code_name (line 18) | pub(crate) fn code_name(&self) -> Option<&str> { method deserialize (line 27) | fn deserialize(deserializer: D) -> Result method serialize (line 42) | fn serialize(&self, serializer: S) -> anyhow::Result type NodeVersion (line 54) | pub(crate) struct NodeVersion { method deserialize (line 69) | fn deserialize(deserializer: D) -> anyhow::Result u64 { method minor (line 117) | pub fn minor(&self) -> u64 { method patch (line 120) | pub fn patch(&self) -> u64 { method version (line 123) | pub fn version(&self) -> &semver::Version { method default (line 60) | fn default() -> Self { method fmt (line 90) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Err (line 100) | type Err = semver::Error; method from_str (line 102) | fn from_str(s: &str) -> Result { type NodeRequest (line 139) | pub(crate) enum NodeRequest { method is_any (line 198) | pub(crate) fn is_any(&self) -> bool { method parse_version_numbers (line 202) | fn parse_version_numbers( method satisfied_by (line 217) | pub(crate) fn satisfied_by(&self, install_info: &InstallInfo) -> bool { method matches (line 233) | pub(crate) fn matches(&self, version: &NodeVersion, toolchain: Option<... type Err (line 153) | type Err = Error; method from_str (line 155) | fn from_str(request: &str) -> Result { constant EXTRA_KEY_LTS (line 195) | pub(crate) const EXTRA_KEY_LTS: &str = "lts"; function test_node_request_from_str (line 265) | fn test_node_request_from_str() { function test_node_request_invalid (line 301) | fn test_node_request_invalid() { function test_node_request_satisfied_by (line 311) | fn test_node_request_satisfied_by() -> anyhow::Result<()> { FILE: crates/prek/src/languages/pygrep/pygrep.rs type Args (line 19) | struct Args { method parse (line 26) | fn parse(args: &[String]) -> Result { method to_args (line 41) | fn to_args(&self) -> Vec<&'static str> { type Error (line 55) | enum Error { constant INSTALL_PYTHON_VERSION (line 68) | const INSTALL_PYTHON_VERSION: &str = "3.13"; type Pygrep (line 70) | pub(crate) struct Pygrep; function find_installed_python (line 72) | fn find_installed_python(python_dir: &Path) -> Option { method install (line 91) | async fn install( method check_health (line 174) | async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 182) | async fn run( FILE: crates/prek/src/languages/pygrep/script.py function process_file (line 13) | def process_file( function _process_filename_by_line (line 33) | def _process_filename_by_line( function _process_filename_at_once (line 48) | def _process_filename_at_once( function _process_filename_by_line_negated (line 69) | def _process_filename_by_line_negated( function _process_filename_at_once_negated (line 80) | def _process_filename_at_once_negated( function run (line 92) | def run( function main (line 156) | def main(): FILE: crates/prek/src/languages/python/mod.rs function extract_metadata (line 14) | pub(crate) async fn extract_metadata(hook: &mut Hook) -> Result<()> { FILE: crates/prek/src/languages/python/pep723.rs type Pep723Script (line 39) | pub struct Pep723Script { method read (line 54) | pub async fn read(file: impl AsRef) -> Result, Pep7... type Pep723Metadata (line 84) | pub struct Pep723Metadata { type Err (line 90) | type Err = toml::de::Error; method from_str (line 93) | fn from_str(raw: &str) -> Result { type Pep723Error (line 100) | pub enum Pep723Error { type ScriptTag (line 114) | pub struct ScriptTag { method parse (line 152) | pub fn parse(contents: &[u8]) -> Result, Pep723Error> { function extract_pep723_metadata (line 258) | pub(crate) async fn extract_pep723_metadata(hook: &mut Hook) -> Result<(... FILE: crates/prek/src/languages/python/pyproject.rs type PyProjectToml (line 13) | struct PyProjectToml { type ProjectTable (line 19) | struct ProjectTable { function extract_pyproject_requires_python (line 23) | async fn extract_pyproject_requires_python(repo_path: &Path) -> Result Resul... function valid_requires_python (line 83) | async fn valid_requires_python() -> anyhow::Result<()> { function missing_file_returns_none (line 97) | async fn missing_file_returns_none() -> anyhow::Result<()> { function missing_project_table_returns_none (line 105) | async fn missing_project_table_returns_none() -> anyhow::Result<()> { function missing_requires_python_returns_none (line 119) | async fn missing_requires_python_returns_none() -> anyhow::Result<()> { function unparsable_toml_returns_none (line 133) | async fn unparsable_toml_returns_none() -> anyhow::Result<()> { function invalid_version_specifier_is_ignored (line 147) | async fn invalid_version_specifier_is_ignored() -> anyhow::Result<()> { FILE: crates/prek/src/languages/python/python.rs type Python (line 28) | pub(crate) struct Python; method remove_uv_python_override_envs (line 256) | fn remove_uv_python_override_envs(cmd: &mut Cmd) -> &mut Cmd { method pip_install_command (line 265) | fn pip_install_command(uv: &Uv, store: &Store, env_path: &Path) -> Cmd { method create_venv (line 281) | async fn create_venv( method create_venv_command (line 329) | fn create_venv_command( method can_retry_with_downloads (line 365) | fn can_retry_with_downloads(error: &process::Error) -> bool { type PythonInfo (line 30) | pub(crate) struct PythonInfo { type PythonInfoError (line 36) | pub(crate) enum PythonInfoError { function query_python_info (line 48) | async fn query_python_info(python: &Path) -> Result Result<()> { method run (line 186) | async fn run( function to_uv_python_request (line 238) | fn to_uv_python_request(request: &LanguageRequest) -> Option { function bin_dir (line 383) | fn bin_dir(venv: &Path) -> PathBuf { function python_exec (line 391) | pub(crate) fn python_exec(venv: &Path) -> PathBuf { function setup_test_install (line 410) | fn setup_test_install() -> (tempfile::TempDir, Uv, Store, InstallInfo) { function env_map (line 423) | fn env_map(cmd: &crate::process::Cmd) -> HashMap> { function create_venv_command_removes_uv_system_python_override (line 435) | fn create_venv_command_removes_uv_system_python_override() { function pip_install_command_removes_uv_system_python_override (line 448) | fn pip_install_command_removes_uv_system_python_override() { FILE: crates/prek/src/languages/python/uv.rs constant CUR_UV_VERSION (line 23) | const CUR_UV_VERSION: &str = "0.10.9"; function wheel_platform_tag_for_host (line 27) | fn wheel_platform_tag_for_host( function get_wheel_platform_tag (line 83) | fn get_wheel_platform_tag() -> Result { function get_uv_version (line 88) | fn get_uv_version(uv_path: &Path) -> Result { function validate_uv_binary (line 107) | fn validate_uv_binary(uv_path: &Path) -> Result { function replace_uv_binary (line 118) | async fn replace_uv_binary(source: &Path, target_path: &Path) -> Result<... type PyPiMirror (line 146) | enum PyPiMirror { method url (line 158) | fn url(&self) -> &str { method iter (line 168) | fn iter() -> impl Iterator { type InstallSource (line 174) | enum InstallSource { method install (line 184) | async fn install(&self, store: &Store, target: &Path) -> Result<()> { method install_from_github (line 192) | async fn install_from_github(&self, store: &Store, target: &Path) -> R... method install_from_pypi (line 215) | async fn install_from_pypi( method install_from_simple_api (line 267) | async fn install_from_simple_api( method download_and_extract_wheel (line 319) | async fn download_and_extract_wheel( method install_from_pip (line 359) | async fn install_from_pip(&self, target: &Path) -> Result<()> { type Uv (line 398) | pub(crate) struct Uv { method new (line 403) | pub(crate) fn new(path: PathBuf) -> Self { method cmd (line 407) | pub(crate) fn cmd(&self, summary: &str, store: &Store) -> Cmd { method select_source (line 413) | async fn select_source() -> Result { method install (line 474) | pub(crate) async fn install(store: &Store, uv_dir: &Path) -> Result Option { function ensure_cur_uv_version_in_range (line 581) | fn ensure_cur_uv_version_in_range() { function wheel_platform_tag_x86_64_linux_gnu (line 591) | fn wheel_platform_tag_x86_64_linux_gnu() -> Result<()> { function wheel_platform_tag_x86_64_linux_musl (line 602) | fn wheel_platform_tag_x86_64_linux_musl() -> Result<()> { function wheel_platform_tag_i686_linux_gnu (line 613) | fn wheel_platform_tag_i686_linux_gnu() -> Result<()> { function wheel_platform_tag_i686_linux_musl (line 624) | fn wheel_platform_tag_i686_linux_musl() -> Result<()> { function wheel_platform_tag_aarch64_linux_gnu (line 635) | fn wheel_platform_tag_aarch64_linux_gnu() -> Result<()> { function wheel_platform_tag_aarch64_linux_musl (line 649) | fn wheel_platform_tag_aarch64_linux_musl() -> Result<()> { function wheel_platform_tag_armv7_linux_gnu (line 664) | fn wheel_platform_tag_armv7_linux_gnu() -> Result<()> { function wheel_platform_tag_armv7_linux_musl (line 675) | fn wheel_platform_tag_armv7_linux_musl() -> Result<()> { function replace_uv_binary_overwrites_existing_file (line 689) | async fn replace_uv_binary_overwrites_existing_file() -> Result<()> { function replace_uv_binary_recreates_missing_parent_dir (line 708) | async fn replace_uv_binary_recreates_missing_parent_dir() -> Result<()> { FILE: crates/prek/src/languages/python/version.rs type PythonRequest (line 10) | pub(crate) enum PythonRequest { method is_any (line 71) | pub(crate) fn is_any(&self) -> bool { method parse_version_numbers (line 76) | fn parse_version_numbers( method satisfied_by (line 92) | pub(crate) fn satisfied_by(&self, install_info: &InstallInfo) -> bool { type Err (line 35) | type Err = Error; method from_str (line 37) | fn from_str(request: &str) -> Result { function split_wheel_tag_version (line 116) | fn split_wheel_tag_version(mut version: Vec) -> Vec { function test_parse_python_request (line 143) | fn test_parse_python_request() { function test_satisfied_by (line 219) | fn test_satisfied_by() -> anyhow::Result<()> { FILE: crates/prek/src/languages/ruby/gem.rs function find_gemspecs (line 17) | fn find_gemspecs(dir: &Path) -> Result> { function build_gemspec (line 37) | async fn build_gemspec(ruby: &RubyResult, gemspec_path: &Path) -> Result... function build_gemspecs (line 74) | pub(crate) async fn build_gemspecs(ruby: &RubyResult, repo_dir: &Path) -... function gem_env (line 87) | fn gem_env<'a>(cmd: &'a mut Cmd, gem_home: &Path) -> &'a mut Cmd { type ResolvedGem (line 105) | struct ResolvedGem { method key (line 114) | fn key(&self) -> String { function parse_explain_output (line 128) | fn parse_explain_output(output: &str) -> Vec { function resolve_gems (line 172) | async fn resolve_gems( function install_single_gem (line 200) | async fn install_single_gem( function install_gems_sequential (line 235) | async fn install_gems_sequential( function install_gems (line 266) | pub(crate) async fn install_gems( function gem (line 367) | fn gem(name: &str, version: &str, platform: Option<&str>) -> ResolvedGem { function test_parse_explain_output (line 376) | fn test_parse_explain_output() { function test_parse_explain_output_empty (line 397) | fn test_parse_explain_output_empty() { function test_parse_explain_output_platform_gems (line 403) | fn test_parse_explain_output_platform_gems() { function test_parse_explain_output_edge_cases (line 416) | fn test_parse_explain_output_edge_cases() { function test_resolved_gem_key (line 427) | fn test_resolved_gem_key() { FILE: crates/prek/src/languages/ruby/installer.rs constant RV_RUBY_DEFAULT_URL (line 17) | const RV_RUBY_DEFAULT_URL: &str = "https://github.com/spinel-coop/rv-ruby"; function rv_ruby_mirror (line 20) | fn rv_ruby_mirror() -> (String, bool) { function rv_ruby_api_url (line 37) | fn rv_ruby_api_url() -> (String, bool) { function is_github_https (line 55) | fn is_github_https(url: &str) -> bool { function rv_ruby_download_base (line 62) | fn rv_ruby_download_base() -> (String, bool) { function maybe_add_github_auth (line 69) | fn maybe_add_github_auth(req: reqwest::RequestBuilder, is_github: bool) ... type GitHubRelease (line 79) | struct GitHubRelease { type GitHubAsset (line 84) | struct GitHubAsset { function rv_platform_string (line 100) | fn rv_platform_string(triple: &Triple) -> Option<&'static str> { type RubyResult (line 129) | pub(crate) struct RubyResult { method ruby_bin (line 141) | pub(crate) fn ruby_bin(&self) -> &Path { method version (line 145) | pub(crate) fn version(&self) -> &semver::Version { method engine (line 149) | pub(crate) fn engine(&self) -> &str { type RubyInstaller (line 155) | pub(crate) struct RubyInstaller { method new (line 160) | pub(crate) fn new(root: PathBuf) -> Self { method install (line 165) | pub(crate) async fn install( method find_installed (line 236) | fn find_installed(&self, request: &RubyRequest) -> Option { method list_remote_versions (line 267) | async fn list_remote_versions(&self, platform: &str) -> Result Result Optio... function search_version_managers (line 418) | async fn search_version_managers(request: &RubyRequest) -> Option... function parse_version_from_asset (line 490) | fn parse_version_from_asset(name: &str, platform_suffix: &str) -> Option... function ruby_not_found_error (line 502) | fn ruby_not_found_error(request: &RubyRequest, reason: &str) -> String { function find_gem_for_ruby (line 509) | fn find_gem_for_ruby(ruby_path: &Path) -> Result { function query_ruby_info (line 535) | async fn query_ruby_info(ruby_path: &Path) -> Result<(semver::Version, S... type EnvVarGuard (line 569) | struct EnvVarGuard { method new (line 576) | fn new(key: &'static str) -> Self { method drop (line 590) | fn drop(&mut self) { function test_ruby_request_display (line 599) | fn test_ruby_request_display() { function test_search_ruby_installations_empty_dir (line 614) | async fn test_search_ruby_installations_empty_dir() { function test_search_ruby_installations_no_ruby (line 624) | async fn test_search_ruby_installations_no_ruby() { function test_search_ruby_installations_with_file (line 638) | async fn test_search_ruby_installations_with_file() { function test_ruby_not_found_error (line 656) | fn test_ruby_not_found_error() { function test_rv_ruby_urls_default (line 669) | fn test_rv_ruby_urls_default() { function test_rv_ruby_urls_github_mirror (line 689) | fn test_rv_ruby_urls_github_mirror() { function test_rv_ruby_urls_non_github_mirror (line 715) | fn test_rv_ruby_urls_non_github_mirror() { function test_find_gem_for_ruby_missing (line 741) | fn test_find_gem_for_ruby_missing() { function test_find_gem_for_ruby_found (line 760) | fn test_find_gem_for_ruby_found() { function test_parse_version_from_asset (line 777) | fn test_parse_version_from_asset() { function test_rv_platform_string_for_macos (line 818) | fn test_rv_platform_string_for_macos() { function test_rv_platform_string_for_linux (line 827) | fn test_rv_platform_string_for_linux() { function test_rv_platform_string_unsupported (line 842) | fn test_rv_platform_string_unsupported() { function test_find_installed_empty_dir (line 851) | fn test_find_installed_empty_dir() { function test_find_installed_with_versions (line 859) | fn test_find_installed_with_versions() { function test_is_github_https (line 897) | fn test_is_github_https() { function test_find_installed_skips_incomplete_dirs (line 922) | fn test_find_installed_skips_incomplete_dirs() { FILE: crates/prek/src/languages/ruby/ruby.rs type Ruby (line 22) | pub(crate) struct Ruby; method install (line 25) | async fn install( method check_health (line 100) | async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 142) | async fn run( function gem_home (line 208) | fn gem_home(env_path: &Path) -> PathBuf { FILE: crates/prek/src/languages/ruby/version.rs type RubyRequest (line 10) | pub(crate) enum RubyRequest { method fmt (line 31) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method is_any (line 85) | pub(crate) fn is_any(&self) -> bool { method parse_version_numbers (line 90) | fn parse_version_numbers( method matches (line 108) | pub(crate) fn matches(&self, version: &semver::Version, toolchain: Opt... method satisfied_by (line 125) | pub(crate) fn satisfied_by(&self, install_info: &InstallInfo) -> bool { type Err (line 44) | type Err = Error; method from_str (line 46) | fn from_str(s: &str) -> Result { function test_parse_ruby_request (line 140) | fn test_parse_ruby_request() { function test_version_matching (line 180) | fn test_version_matching() -> anyhow::Result<()> { FILE: crates/prek/src/languages/rust/installer.rs type RustResult (line 16) | pub(crate) struct RustResult { method from_dir (line 29) | pub(crate) fn from_dir(dir: &Path) -> Self { method toolchain (line 36) | pub(crate) fn toolchain(&self) -> &Path { method version (line 40) | pub(crate) fn version(&self) -> &RustVersion { method with_version (line 44) | pub(crate) fn with_version(mut self, version: RustVersion) -> Self { method fill_version (line 49) | pub(crate) async fn fill_version(mut self) -> Result { method fmt (line 22) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type RustInstaller (line 79) | pub(crate) struct RustInstaller { method new (line 84) | pub(crate) fn new(rustup: Rustup) -> Self { method install (line 88) | pub(crate) async fn install( method find_installed (line 118) | async fn find_installed(&self, request: &RustRequest) -> Result Result... method resolve_version (line 166) | async fn resolve_version(&self, req: &RustRequest) -> Result Result { FILE: crates/prek/src/languages/rust/rust.rs function format_cargo_dependency (line 27) | fn format_cargo_dependency(dep: &str) -> String { type CargoCliDependency (line 37) | enum CargoCliDependency { method to_cargo_args (line 103) | fn to_cargo_args(&self) -> Vec<&str> { type Err (line 50) | type Err = anyhow::Error; method from_str (line 52) | fn from_str(s: &str) -> Result { function find_package_dir (line 132) | async fn find_package_dir( function names_match (line 194) | fn names_match(a: &str, b: &str) -> bool { function package_produces_binary (line 199) | fn package_produces_binary(package: &cargo_metadata::Package, binary_nam... function copy_binaries (line 208) | async fn copy_binaries(release_dir: &Path, dest_bin_dir: &Path) -> anyho... function install_local_project (line 243) | async fn install_local_project( function install_cli_dependency (line 382) | async fn install_cli_dependency( type Rust (line 408) | pub(crate) struct Rust; method install (line 411) | async fn install( method check_health (line 507) | async fn check_health(&self, _info: &InstallInfo) -> anyhow::Result<()> { method run (line 511) | async fn run( function bin_dir (line 568) | pub(crate) fn bin_dir(env_path: &Path) -> PathBuf { function write_file (line 577) | async fn write_file(path: &Path, content: &str) { function test_find_package_dir_single_package (line 585) | async fn test_find_package_dir_single_package() { function test_find_package_dir_single_package_underscore_normalization (line 607) | async fn test_find_package_dir_single_package_underscore_normalization() { function test_find_package_dir_workspace_with_root_package (line 628) | async fn test_find_package_dir_workspace_with_root_package() { function test_find_package_dir_workspace_member (line 663) | async fn test_find_package_dir_workspace_member() { function test_find_package_dir_by_bin_name (line 700) | async fn test_find_package_dir_by_bin_name() { function test_find_package_dir_by_src_bin_file (line 739) | async fn test_find_package_dir_by_src_bin_file() { function test_find_package_dir_virtual_workspace_nested_member (line 762) | async fn test_find_package_dir_virtual_workspace_nested_member() { function test_find_package_dir_virtual_workspace_glob_members (line 791) | async fn test_find_package_dir_virtual_workspace_glob_members() { function test_find_package_dir_no_cargo_toml (line 835) | async fn test_find_package_dir_no_cargo_toml() { function test_find_package_dir_workspace_binary_not_found (line 845) | async fn test_find_package_dir_workspace_binary_not_found() { function test_format_cargo_dependency (line 869) | fn test_format_cargo_dependency() { function test_parse_cargo_cli_dependency_crate_forms (line 876) | fn test_parse_cargo_cli_dependency_crate_forms() { function test_parse_cargo_cli_dependency_git_valid_forms (line 894) | fn test_parse_cargo_cli_dependency_git_valid_forms() { function test_parse_cargo_cli_dependency_git_invalid_forms (line 936) | fn test_parse_cargo_cli_dependency_git_invalid_forms() { function test_format_cargo_cli_dependency (line 952) | fn test_format_cargo_cli_dependency() { FILE: crates/prek/src/languages/rust/rustup.rs type Rustup (line 19) | pub(crate) struct Rustup { method rustup_home (line 36) | pub(crate) fn rustup_home(&self) -> &Path { method install (line 41) | pub(crate) async fn install(store: &Store, rustup_home: &Path) -> Resu... method download (line 79) | async fn download(store: &Store, rustup_home: &Path) -> Result { method install_toolchain (line 126) | pub(crate) async fn install_toolchain(&self, toolchain: &str) -> Resul... method list_installed_toolchains (line 165) | pub(crate) async fn list_installed_toolchains(&self) -> Result Result Option<(String, PathBuf)> { function toolchain_info (line 247) | async fn toolchain_info(name: String, toolchain_dir: PathBuf) -> Result<... function make_executable (line 274) | fn make_executable(path: &Path) -> std::io::Result<()> { FILE: crates/prek/src/languages/rust/version.rs type Channel (line 10) | pub(crate) enum Channel { type Err (line 17) | type Err = (); method from_str (line 19) | fn from_str(s: &str) -> Result { method fmt (line 30) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type RustVersion (line 41) | pub(crate) struct RustVersion { method from_version (line 64) | pub(crate) fn from_version(version: &semver::Version) -> Self { method from_channel (line 71) | pub(crate) fn from_channel(channel: Channel) -> Self { method from_path (line 78) | pub(crate) fn from_path(version: &semver::Version, path: &Path) -> Self { method to_toolchain_name (line 99) | pub(crate) fn to_toolchain_name(&self) -> String { method default (line 47) | fn default() -> Self { type Target (line 56) | type Target = semver::Version; method deref (line 58) | fn deref(&self) -> &Self::Target { type RustRequest (line 120) | pub(crate) enum RustRequest { method is_any (line 169) | pub(crate) fn is_any(&self) -> bool { method parse_version_numbers (line 173) | fn parse_version_numbers( method satisfied_by (line 188) | pub(crate) fn satisfied_by(&self, install_info: &InstallInfo) -> bool { method matches (line 213) | pub(crate) fn matches(&self, version: &RustVersion, _toolchain: Option... type Err (line 130) | type Err = Error; method from_str (line 132) | fn from_str(s: &str) -> Result { method fmt (line 152) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { constant EXTRA_KEY_CHANNEL (line 166) | pub(crate) const EXTRA_KEY_CHANNEL: &str = "channel"; function test_request_from_str (line 244) | fn test_request_from_str() -> anyhow::Result<()> { function test_invalid_requests (line 278) | fn test_invalid_requests() { function test_request_matches (line 286) | fn test_request_matches() -> anyhow::Result<()> { function test_request_satisfied_by_install_info (line 311) | fn test_request_satisfied_by_install_info() -> anyhow::Result<()> { function test_satisfied_by_channel (line 341) | fn test_satisfied_by_channel() -> anyhow::Result<()> { function test_satisfied_by_any_with_stable_channel (line 359) | fn test_satisfied_by_any_with_stable_channel() -> anyhow::Result<()> { function test_satisfied_by_any_without_channel (line 375) | fn test_satisfied_by_any_without_channel() -> anyhow::Result<()> { FILE: crates/prek/src/languages/script.rs type Script (line 16) | pub(crate) struct Script; method install (line 19) | async fn install( method check_health (line 28) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 32) | async fn run( FILE: crates/prek/src/languages/swift.rs type Swift (line 19) | pub(crate) struct Swift; type SwiftInfo (line 21) | pub(crate) struct SwiftInfo { function query_swift_info (line 26) | pub(crate) async fn query_swift_info() -> Result { function normalize_version (line 50) | fn normalize_version(version_str: &str) -> String { function parse_swift_version (line 60) | fn parse_swift_version(output: &str) -> Option { function build_dir (line 80) | fn build_dir(env_path: &Path) -> PathBuf { constant BIN_PATH_KEY (line 84) | const BIN_PATH_KEY: &str = "swift_bin_path"; method install (line 87) | async fn install( method check_health (line 163) | async fn check_health(&self, info: &InstallInfo) -> Result<()> { method run (line 175) | async fn run( function test_parse_macos_format (line 235) | fn test_parse_macos_format() { function test_parse_linux_format (line 245) | fn test_parse_linux_format() { function test_parse_multiline_output (line 255) | fn test_parse_multiline_output() { function test_parse_linux_multiline (line 266) | fn test_parse_linux_multiline() { function test_parse_invalid_output (line 277) | fn test_parse_invalid_output() { function test_parse_version_without_patch (line 284) | fn test_parse_version_without_patch() { function test_parse_dev_version (line 301) | fn test_parse_dev_version() { FILE: crates/prek/src/languages/system.rs type System (line 15) | pub(crate) struct System; method install (line 18) | async fn install( method check_health (line 27) | async fn check_health(&self, _info: &InstallInfo) -> Result<()> { method run (line 31) | async fn run( FILE: crates/prek/src/languages/version.rs type Error (line 14) | pub(crate) enum Error { type LanguageRequest (line 20) | pub(crate) enum LanguageRequest { method is_any (line 34) | pub(crate) fn is_any(&self) -> bool { method allows_download (line 53) | pub(crate) fn allows_download(&self) -> bool { method parse (line 60) | pub(crate) fn parse(lang: Language, request: &str) -> Result bool { type SemverRequest (line 106) | pub(crate) struct SemverRequest(semver::VersionReq); method satisfied_by (line 119) | fn satisfied_by(&self, install_info: &InstallInfo) -> bool { type Err (line 109) | type Err = Error; method from_str (line 111) | fn from_str(request: &str) -> Result { function try_into_u64_slice (line 124) | pub(crate) fn try_into_u64_slice(version: &str) -> Result, std:... FILE: crates/prek/src/main.rs type Level (line 58) | pub(crate) enum Level { type LogFile (line 72) | enum LogFile { method from_args (line 79) | fn from_args(log_file: Option, no_log_file: bool) -> Self { method is_disabled (line 89) | fn is_disabled(&self) -> bool { function setup_logging (line 94) | fn setup_logging(level: Level, log_file: LogFile, store: &Store) -> Resu... function run (line 148) | async fn run(cli: Cli) -> Result { function main (line 487) | fn main() -> ExitCode { FILE: crates/prek/src/printer.rs type Printer (line 27) | pub enum Printer { method target (line 42) | pub fn target(self) -> ProgressDrawTarget { method stdout_important (line 55) | pub(crate) fn stdout_important(self) -> Stdout { method stdout (line 66) | pub(crate) fn stdout(self) -> Stdout { method stderr (line 77) | pub(crate) fn stderr(self) -> Stderr { type Stdout (line 89) | pub enum Stdout { method write_str (line 95) | fn write_str(&mut self, s: &str) -> std::fmt::Result { type Stderr (line 111) | pub enum Stderr { method write_str (line 117) | fn write_str(&mut self, s: &str) -> std::fmt::Result { FILE: crates/prek/src/process.rs type Error (line 52) | pub enum Error { type StatusError (line 74) | pub struct StatusError { method fmt (line 80) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Cmd (line 114) | pub struct Cmd { method new (line 124) | pub fn new(command: impl AsRef, summary: impl Into) -> ... method stdout_to_stderr (line 141) | pub fn stdout_to_stderr(&mut self) -> &mut Self { method check (line 156) | pub fn check(&mut self, checked: bool) -> &mut Self { method run (line 166) | pub async fn run(&mut self) -> Result<(), Error> { method spawn (line 173) | pub fn spawn(&mut self) -> Result { method output (line 183) | pub async fn output(&mut self) -> Result { method pty_output (line 194) | pub async fn pty_output(&mut self) -> Result { method pty_output (line 199) | pub async fn pty_output(&mut self) -> Result { method pty_output_inner (line 209) | async fn pty_output_inner(&mut self) -> Result { method status (line 283) | pub async fn status(&mut self) -> Result { method arg (line 317) | pub fn arg>(&mut self, arg: S) -> &mut Self { method args (line 323) | pub fn args(&mut self, args: I) -> &mut Self method env (line 333) | pub fn env(&mut self, key: K, val: V) -> &mut Self method envs (line 343) | pub fn envs(&mut self, vars: I) -> &mut Self method env_remove (line 354) | pub fn env_remove>(&mut self, key: K) -> &mut Self { method env_clear (line 360) | pub fn env_clear(&mut self) -> &mut Self { method current_dir (line 366) | pub fn current_dir>(&mut self, dir: P) -> &mut Self { method stdin (line 372) | pub fn stdin>(&mut self, cfg: T) -> &mut Self { method stdout (line 378) | pub fn stdout>(&mut self, cfg: T) -> &mut Self { method stderr (line 384) | pub fn stderr>(&mut self, cfg: T) -> &mut Self { method get_program (line 390) | pub fn get_program(&self) -> &OsStr { method get_args (line 395) | pub fn get_args(&self) -> CommandArgs<'_> { method get_envs (line 400) | pub fn get_envs(&self) -> CommandEnvs<'_> { method get_current_dir (line 405) | pub fn get_current_dir(&self) -> Option<&Path> { method remove_git_envs (line 410) | pub fn remove_git_envs(&mut self) -> &mut Self { method check_status (line 421) | pub fn check_status(&self, status: ExitStatus) -> Result<(), Error> { method check_output (line 435) | pub fn check_output(&self, output: &Output) -> Result<(), Error> { method maybe_check_status (line 451) | pub fn maybe_check_status(&self, status: ExitStatus) -> Result<(), Err... method maybe_check_output (line 460) | pub fn maybe_check_output(&self, output: &Output) -> Result<(), Error> { method log_command (line 469) | pub fn log_command(&self) { function drain_ready_pty (line 295) | async fn drain_ready_pty( function skip_args (line 475) | fn skip_args(cmd: &OsStr, cur: &OsStr, next: Option<&&OsStr>) -> usize { method fmt (line 499) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function pty_output_captures_trailing_output_after_fast_exit (line 536) | async fn pty_output_captures_trailing_output_after_fast_exit() { FILE: crates/prek/src/profiler.rs function start_profiling (line 4) | pub(crate) fn start_profiling() -> Option> { function finish_profiling (line 19) | pub(crate) fn finish_profiling(profiler_guard: Option Result { FILE: crates/prek/src/run.rs function resolve_concurrency (line 24) | fn resolve_concurrency(no_concurrency: bool, max_concurrency: Option<&st... function target_concurrency (line 54) | fn target_concurrency(serial: bool) -> usize { type Partitions (line 59) | struct Partitions<'a> { constant POINTER_SIZE_CONSERVATIVE (line 69) | const POINTER_SIZE_CONSERVATIVE: usize = 8; constant ARG_HEADROOM (line 73) | const ARG_HEADROOM: usize = 2048; function environment_variable_size (line 78) | fn environment_variable_size>(key: O, value: O) -> usize { function arg_size (line 88) | fn arg_size>(arg: O) -> usize { function platform_max_cli_length (line 119) | fn platform_max_cli_length() -> usize { function env_size (line 140) | fn env_size(override_envs: &FxHashMap) -> usize { function split (line 162) | fn split( type Item (line 216) | type Item = &'a [&'a Path]; method next (line 218) | fn next(&mut self) -> Option { function run_by_batch (line 259) | pub(crate) async fn run_by_batch( function create_test_partitions (line 297) | fn create_test_partitions<'a>( function test_partitions_normal_filenames (line 311) | fn test_partitions_normal_filenames() { function test_partitions_empty_filenames (line 326) | fn test_partitions_empty_filenames() { function test_partitions_long_filename_in_middle_panics (line 342) | fn test_partitions_long_filename_in_middle_panics() { function test_partitions_respects_max_per_batch (line 361) | fn test_partitions_respects_max_per_batch() { function test_resolve_concurrency_defaults_to_cpu (line 381) | fn test_resolve_concurrency_defaults_to_cpu() { function test_resolve_concurrency_max_caps_value (line 386) | fn test_resolve_concurrency_max_caps_value() { function test_resolve_concurrency_max_above_cpu (line 391) | fn test_resolve_concurrency_max_above_cpu() { function test_resolve_concurrency_max_zero_floors_to_one (line 396) | fn test_resolve_concurrency_max_zero_floors_to_one() { function test_resolve_concurrency_max_invalid_falls_back (line 401) | fn test_resolve_concurrency_max_invalid_falls_back() { function test_resolve_concurrency_max_empty_falls_back (line 406) | fn test_resolve_concurrency_max_empty_falls_back() { function test_resolve_concurrency_no_concurrency (line 411) | fn test_resolve_concurrency_no_concurrency() { function test_resolve_concurrency_no_concurrency_overrides_max (line 416) | fn test_resolve_concurrency_no_concurrency_overrides_max() { function test_partitions_respects_cli_length_limit (line 421) | fn test_partitions_respects_cli_length_limit() { FILE: crates/prek/src/schema.rs type RemoveNullTypes (line 8) | struct RemoveNullTypes; method transform (line 11) | fn transform(&mut self, schema: &mut schemars::Schema) { function strip_null_acceptance (line 17) | fn strip_null_acceptance(schema: &mut schemars::Schema) { method inline_schema (line 124) | fn inline_schema() -> bool { method schema_name (line 128) | fn schema_name() -> Cow<'static, str> { method json_schema (line 132) | fn json_schema(generator: &mut schemars::generate::SchemaGenerator) -> s... method schema_name (line 143) | fn schema_name() -> Cow<'static, str> { method json_schema (line 147) | fn json_schema(_gen: &mut schemars::generate::SchemaGenerator) -> schema... method schema_name (line 182) | fn schema_name() -> std::borrow::Cow<'static, str> { method json_schema (line 186) | fn json_schema(_gen: &mut schemars::generate::SchemaGenerator) -> schema... function predefined_hook_schema (line 200) | fn predefined_hook_schema( method schema_name (line 239) | fn schema_name() -> Cow<'static, str> { method json_schema (line 243) | fn json_schema(schema_gen: &mut schemars::SchemaGenerator) -> schemars::... method schema_name (line 252) | fn schema_name() -> Cow<'static, str> { method json_schema (line 256) | fn json_schema(r#gen: &mut schemars::SchemaGenerator) -> schemars::Schema { function schema_repo_local (line 264) | pub(crate) fn schema_repo_local( function schema_repo_meta (line 274) | pub(crate) fn schema_repo_meta(_gen: &mut schemars::generate::SchemaGene... function schema_repo_builtin (line 282) | pub(crate) fn schema_repo_builtin( function schema_repo_remote (line 292) | pub(crate) fn schema_repo_remote( method schema_name (line 305) | fn schema_name() -> Cow<'static, str> { method json_schema (line 309) | fn json_schema(r#gen: &mut schemars::generate::SchemaGenerator) -> schem... constant ROOT_DIR (line 338) | const ROOT_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../"); type Mode (line 340) | enum Mode { function generate (line 351) | fn generate() -> String { function generate_json_schema (line 361) | fn generate_json_schema() -> anyhow::Result<()> { FILE: crates/prek/src/store.rs type PendingClone (line 23) | struct PendingClone<'a> { type FirstClonePass (line 27) | enum FirstClonePass<'a> { type Error (line 41) | pub enum Error { function expand_tilde (line 57) | fn expand_tilde(path: PathBuf) -> PathBuf { constant REPO_MARKER (line 66) | pub(crate) const REPO_MARKER: &str = ".prek-repo.json"; type Store (line 70) | pub struct Store { method from_path (line 75) | pub(crate) fn from_path(path: impl Into) -> Self { method from_settings (line 80) | pub(crate) fn from_settings() -> Result { method path (line 97) | pub(crate) fn path(&self) -> &Path { method init (line 102) | pub(crate) fn init(self) -> Result { method clone_repo_to_temp (line 119) | async fn clone_repo_to_temp( method persist_cloned_repo (line 135) | async fn persist_cloned_repo( method clone_repos (line 157) | pub(crate) async fn clone_repos<'a>( method clone_repo (line 275) | pub(crate) async fn clone_repo( method installed_hooks (line 289) | pub(crate) async fn installed_hooks(&self) -> Vec> { method lock_async (line 324) | pub(crate) async fn lock_async(&self) -> Result PathBuf { method repo_key (line 334) | pub(crate) fn repo_key(repo: &RemoteRepo) -> String { method repos_dir (line 340) | pub(crate) fn repos_dir(&self) -> PathBuf { method hooks_dir (line 344) | pub(crate) fn hooks_dir(&self) -> PathBuf { method patches_dir (line 348) | pub(crate) fn patches_dir(&self) -> PathBuf { method tools_dir (line 352) | pub(crate) fn tools_dir(&self) -> PathBuf { method cache_dir (line 356) | pub(crate) fn cache_dir(&self) -> PathBuf { method tools_path (line 361) | pub(crate) fn tools_path(&self, tool: ToolBucket) -> PathBuf { method cache_path (line 365) | pub(crate) fn cache_path(&self, tool: CacheBucket) -> PathBuf { method scratch_path (line 370) | pub(crate) fn scratch_path(&self) -> PathBuf { method log_file (line 374) | pub(crate) fn log_file(&self) -> PathBuf { method config_tracking_file (line 378) | pub(crate) fn config_tracking_file(&self) -> PathBuf { method tracked_configs (line 386) | pub(crate) fn tracked_configs(&self) -> Result, Err... method track_configs (line 415) | pub(crate) fn track_configs<'a>( method update_tracked_configs (line 432) | pub(crate) fn update_tracked_configs(&self, configs: &FxHashSet String { FILE: crates/prek/src/version.rs type CommitInfo (line 31) | pub(crate) struct CommitInfo { type VersionInfo (line 41) | pub(crate) struct VersionInfo { method fmt (line 52) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { function from (line 67) | fn from(val: VersionInfo) -> Self { function version (line 73) | pub fn version() -> VersionInfo { FILE: crates/prek/src/warnings.rs function enable (line 37) | pub fn enable() { function disable (line 42) | pub fn disable() { FILE: crates/prek/src/workspace.rs type Error (line 28) | pub(crate) enum Error { type HookInitReporter (line 51) | pub(crate) trait HookInitReporter { method on_clone_start (line 52) | fn on_clone_start(&self, repo: &str) -> usize; method on_clone_complete (line 53) | fn on_clone_complete(&self, id: usize); method on_complete (line 54) | fn on_complete(&self); type Project (line 58) | pub(crate) struct Project { method fmt (line 72) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method from_config_file (line 109) | pub(crate) fn from_config_file( method find_config (line 155) | fn find_config(path: &Path) -> Option { method find_all_configs (line 165) | fn find_all_configs(path: &Path) -> Vec<(&'static str, PathBuf)> { method from_directory (line 177) | pub(crate) fn from_directory(path: &Path) -> Result { method discover (line 201) | pub(crate) fn discover(config_file: Option<&Path>, dir: &Path) -> Resu... method with_relative_path (line 214) | pub(crate) fn with_relative_path(&mut self, relative_path: PathBuf) { method with_idx (line 218) | fn with_idx(&mut self, idx: usize) { method config (line 222) | pub(crate) fn config(&self) -> &Config { method config_file (line 228) | pub(crate) fn config_file(&self) -> &Path { method path (line 233) | pub(crate) fn path(&self) -> &Path { method relative_path (line 241) | pub(crate) fn relative_path(&self) -> &Path { method is_root (line 245) | pub(crate) fn is_root(&self) -> bool { method depth (line 249) | pub(crate) fn depth(&self) -> usize { method idx (line 253) | pub(crate) fn idx(&self) -> usize { method init_hooks (line 258) | pub(crate) async fn init_hooks( method init_repos (line 274) | async fn init_repos( method internal_init_hooks (line 328) | async fn internal_init_hooks(self: Arc) -> Result, Err... method fmt (line 83) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method eq (line 93) | fn eq(&self, other: &Self) -> bool { method hash (line 101) | fn hash(&self, state: &mut H) { type CachedConfigFile (line 411) | struct CachedConfigFile { type WorkspaceCache (line 422) | pub(crate) struct WorkspaceCache { constant CURRENT_VERSION (line 434) | const CURRENT_VERSION: u32 = 1; constant MAX_CACHE_AGE (line 436) | const MAX_CACHE_AGE: u64 = 60 * 60; method new (line 439) | fn new(workspace_root: PathBuf, projects: &[Project]) -> Self { method is_valid (line 461) | fn is_valid(&self) -> bool { method cache_path (line 511) | fn cache_path(store: &Store, workspace_root: &Path) -> PathBuf { method load (line 523) | fn load(store: &Store, workspace_root: &Path, refresh: bool) -> Option... method save (line 555) | fn save(&self, store: &Store) -> Result<()> { method cached_config_paths (line 573) | pub(crate) fn cached_config_paths(store: &Store) -> FxHashSet { type Workspace (line 629) | pub(crate) struct Workspace { method find_root (line 638) | pub(crate) fn find_root(config_file: Option<&Path>, dir: &Path) -> Res... method discover (line 660) | pub(crate) fn discover( method discover_fresh (line 762) | fn discover_fresh(root: &Path, selectors: Option<&Selectors>) -> Resul... method sort_and_index_projects (line 860) | fn sort_and_index_projects(projects: &mut [Project]) { method root (line 877) | pub(crate) fn root(&self) -> &Path { method projects (line 881) | pub(crate) fn projects(&self) -> &[Arc] { method all_projects (line 885) | pub(crate) fn all_projects(&self) -> &[Project] { method init_repos (line 890) | async fn init_repos( method init_hooks (line 956) | pub(crate) async fn init_hooks( method check_configs_staged (line 975) | pub(crate) async fn check_configs_staged(&self) -> Result<()> { FILE: crates/prek/src/yaml.rs function serialize_yaml_scalar (line 10) | pub(crate) fn serialize_yaml_scalar(value: &str, quote: &str) -> anyhow:... function is_simple_plain (line 27) | fn is_simple_plain(value: &str) -> bool { function escape_single_quoted (line 37) | fn escape_single_quoted(value: &str) -> String { function escape_double_quoted (line 42) | fn escape_double_quoted(value: &str) -> String { function serialize_yaml_scalar_plain (line 65) | fn serialize_yaml_scalar_plain() { function serialize_yaml_scalar_quotes_and_escapes (line 96) | fn serialize_yaml_scalar_quotes_and_escapes() { FILE: crates/prek/tests/auto_update.rs constant BASE_TIMESTAMP (line 12) | const BASE_TIMESTAMP: u64 = 1_000_000_000; constant INCREMENTING_STEP_SECS (line 13) | const INCREMENTING_STEP_SECS: u64 = 100; constant FIXED_STEP_SECS (line 14) | const FIXED_STEP_SECS: u64 = 0; function create_local_git_repo (line 17) | fn create_local_git_repo(context: &TestContext, repo_name: &str, tags: &... function create_local_git_repo_fixed_ts (line 23) | fn create_local_git_repo_fixed_ts( function create_local_git_repo_with_timestamps (line 31) | fn create_local_git_repo_with_timestamps( function auto_update_basic (line 113) | fn auto_update_basic() -> Result<()> { function auto_update_already_up_to_date (line 156) | fn auto_update_already_up_to_date() -> Result<()> { function auto_update_does_not_rewrite_config_when_up_to_date (line 201) | fn auto_update_does_not_rewrite_config_when_up_to_date() -> Result<()> { function auto_update_multiple_repos_mixed (line 244) | fn auto_update_multiple_repos_mixed() -> Result<()> { function test_resolve_revision_ignores_git_dir_env_var (line 307) | fn test_resolve_revision_ignores_git_dir_env_var() -> Result<()> { function auto_update_specific_repos (line 356) | fn auto_update_specific_repos() -> Result<()> { function auto_update_bleeding_edge (line 438) | fn auto_update_bleeding_edge() -> Result<()> { function auto_update_freeze (line 486) | fn auto_update_freeze() -> Result<()> { function auto_update_freeze_uses_dereferenced_commit_for_annotated_tags (line 544) | fn auto_update_freeze_uses_dereferenced_commit_for_annotated_tags() -> R... function auto_update_preserve_quote_style (line 603) | fn auto_update_preserve_quote_style() -> Result<()> { function auto_update_with_existing_frozen_comment (line 680) | fn auto_update_with_existing_frozen_comment() -> Result<()> { function auto_update_local_repo_ignored (line 731) | fn auto_update_local_repo_ignored() -> Result<()> { function missing_hook_ids (line 787) | fn missing_hook_ids() -> Result<()> { function auto_update_workspace (line 842) | fn auto_update_workspace() -> Result<()> { function prefer_similar_tags (line 942) | fn prefer_similar_tags() -> Result<()> { function auto_update_dry_run (line 1021) | fn auto_update_dry_run() -> Result<()> { function quoting_float_like_version_number (line 1064) | fn quoting_float_like_version_number() -> Result<()> { function auto_update_with_invalid_config_file (line 1109) | fn auto_update_with_invalid_config_file() -> Result<()> { function auto_update_toml (line 1139) | fn auto_update_toml() -> Result<()> { function auto_update_toml_with_comment (line 1188) | fn auto_update_toml_with_comment() -> Result<()> { function auto_update_freeze_toml (line 1276) | fn auto_update_freeze_toml() -> Result<()> { function auto_update_equal_timestamp_tags_picks_highest_version (line 1339) | fn auto_update_equal_timestamp_tags_picks_highest_version() -> Result<()> { function auto_update_equal_timestamp_prefers_semver_over_nonsemver (line 1388) | fn auto_update_equal_timestamp_prefers_semver_over_nonsemver() -> Result... function auto_update_mixed_timestamps_with_equal_subgroups (line 1438) | fn auto_update_mixed_timestamps_with_equal_subgroups() -> Result<()> { function auto_update_freeze_toml_with_comment (line 1507) | fn auto_update_freeze_toml_with_comment() -> Result<()> { FILE: crates/prek/tests/builtin_hooks.rs function builtin_hooks_not_create_env (line 17) | fn builtin_hooks_not_create_env() { function builtin_hooks_unknown_hook (line 50) | fn builtin_hooks_unknown_hook() { function end_of_file_fixer_hook (line 80) | fn end_of_file_fixer_hook() -> Result<()> { function check_yaml_hook (line 153) | fn check_yaml_hook() -> Result<()> { function check_yaml_multiple_document (line 218) | fn check_yaml_multiple_document() -> Result<()> { function check_json_hook (line 270) | fn check_json_hook() -> Result<()> { function mixed_line_ending_hook (line 328) | fn mixed_line_ending_hook() -> Result<()> { function check_added_large_files_hook (line 484) | fn check_added_large_files_hook() -> Result<()> { function tracked_file_exceeds_large_file_limit (line 587) | fn tracked_file_exceeds_large_file_limit() -> Result<()> { function builtin_hooks_workspace_mode (line 624) | fn builtin_hooks_workspace_mode() -> Result<()> { function fix_byte_order_marker_hook (line 842) | fn fix_byte_order_marker_hook() -> Result<()> { function check_symlinks_hook_unix (line 906) | fn check_symlinks_hook_unix() -> Result<()> { function check_symlinks_hook_windows (line 970) | fn check_symlinks_hook_windows() -> Result<()> { function detect_private_key_hook (line 1039) | fn detect_private_key_hook() -> Result<()> { function check_merge_conflict_hook (line 1129) | fn check_merge_conflict_hook() -> Result<()> { function check_merge_conflict_without_assume_flag (line 1208) | fn check_merge_conflict_without_assume_flag() -> Result<()> { function check_xml_hook (line 1247) | fn check_xml_hook() -> Result<()> { function check_xml_with_features (line 1346) | fn check_xml_with_features() -> Result<()> { function no_commit_to_branch_hook (line 1403) | fn no_commit_to_branch_hook() -> Result<()> { function no_commit_to_branch_hook_with_custom_branches (line 1476) | fn no_commit_to_branch_hook_with_custom_branches() -> Result<()> { function no_commit_to_branch_hook_with_patterns (line 1550) | fn no_commit_to_branch_hook_with_patterns() -> Result<()> { function check_executables_have_shebangs_hook (line 1682) | fn check_executables_have_shebangs_hook() -> Result<()> { function check_executables_have_shebangs_win (line 1766) | fn check_executables_have_shebangs_win() -> Result<()> { function check_executables_have_shebangs_various_cases (line 1822) | fn check_executables_have_shebangs_various_cases() -> Result<()> { function check_executables_have_shebangs_various_cases_win (line 1916) | fn check_executables_have_shebangs_various_cases_win() -> Result<()> { function is_case_sensitive_filesystem (line 1983) | fn is_case_sensitive_filesystem(context: &TestContext) -> Result { function check_case_conflict_hook (line 1993) | fn check_case_conflict_hook() -> Result<()> { function check_case_conflict_directory (line 2056) | fn check_case_conflict_directory() -> Result<()> { function check_case_conflict_among_new_files (line 2100) | fn check_case_conflict_among_new_files() -> Result<()> { function check_json5 (line 2146) | fn check_json5() -> Result<()> { function builtin_hooks_ignore_system_path_binaries (line 2223) | fn builtin_hooks_ignore_system_path_binaries() -> Result<()> { FILE: crates/prek/tests/cache.rs function cache_dir (line 12) | fn cache_dir() { function cache_gc_verbose_shows_removed_entries (line 27) | fn cache_gc_verbose_shows_removed_entries() { function cache_clean (line 106) | fn cache_clean() -> anyhow::Result<()> { function cache_size (line 145) | fn cache_size() -> anyhow::Result<()> { function cache_gc_removes_unreferenced_entries (line 185) | fn cache_gc_removes_unreferenced_entries() -> anyhow::Result<()> { function cache_gc_prunes_unused_tool_versions (line 254) | fn cache_gc_prunes_unused_tool_versions() -> anyhow::Result<()> { function cache_gc_prunes_tool_versions_without_positive_identification (line 408) | fn cache_gc_prunes_tool_versions_without_positive_identification() -> an... function cache_gc_keeps_local_hook_env (line 491) | fn cache_gc_keeps_local_hook_env() -> anyhow::Result<()> { function write_config_tracking_file (line 564) | fn write_config_tracking_file( function write_workspace_cache_file (line 577) | fn write_workspace_cache_file( function cache_gc_bootstraps_tracking_from_workspace_cache (line 615) | fn cache_gc_bootstraps_tracking_from_workspace_cache() -> anyhow::Result... function cache_gc_drops_missing_tracked_config (line 647) | fn cache_gc_drops_missing_tracked_config() -> anyhow::Result<()> { function cache_gc_keeps_tracked_config_on_parse_error (line 692) | fn cache_gc_keeps_tracked_config_on_parse_error() -> anyhow::Result<()> { function cache_gc_dry_run_does_not_remove_entries (line 729) | fn cache_gc_dry_run_does_not_remove_entries() -> anyhow::Result<()> { FILE: crates/prek/tests/common/mod.rs function git_cmd (line 15) | pub fn git_cmd(dir: impl AsRef) -> Command { type TestContext (line 26) | pub struct TestContext { method new (line 39) | pub fn new() -> Self { method new_at (line 51) | pub fn new_at(path: PathBuf) -> Self { method from_root (line 63) | fn from_root(root: tempfile::TempDir, temp_dir: ChildPath) -> Self { method test_bucket_dir (line 102) | pub fn test_bucket_dir() -> PathBuf { method path_pattern (line 115) | fn path_pattern(path: impl AsRef) -> String { method path_patterns (line 128) | pub fn path_patterns(path: impl AsRef) -> Vec { method read (line 147) | pub fn read(&self, file: impl AsRef) -> String { method command (line 152) | pub fn command(&self) -> Command { method run (line 180) | pub fn run(&self) -> Command { method validate_config (line 186) | pub fn validate_config(&self) -> Command { method validate_manifest (line 192) | pub fn validate_manifest(&self) -> Command { method install (line 198) | pub fn install(&self) -> Command { method prepare_hooks (line 204) | pub fn prepare_hooks(&self) -> Command { method uninstall (line 210) | pub fn uninstall(&self) -> Command { method sample_config (line 216) | pub fn sample_config(&self) -> Command { method list (line 222) | pub fn list(&self) -> Command { method auto_update (line 228) | pub fn auto_update(&self) -> Command { method try_repo (line 234) | pub fn try_repo(&self) -> Command { method filters (line 241) | pub fn filters(&self) -> Vec<(&str, &str)> { method work_dir (line 252) | pub fn work_dir(&self) -> &ChildPath { method home_dir (line 257) | pub fn home_dir(&self) -> &ChildPath { method init_project (line 262) | pub fn init_project(&self) { method git_add (line 272) | pub fn git_add(&self, path: impl AsRef) { method git_commit (line 281) | pub fn git_commit(&self, message: &str) { method git_tag (line 292) | pub fn git_tag(&self, tag: &str) { method git_reset (line 303) | pub fn git_reset(&self, target: &str) { method git_rm (line 312) | pub fn git_rm(&self, path: &str) { method git_clean (line 326) | pub fn git_clean(&self) { method git_branch (line 335) | pub fn git_branch(&self, branch_name: &str) { method git_checkout (line 344) | pub fn git_checkout(&self, branch_name: &str) { method write_pre_commit_config (line 353) | pub fn write_pre_commit_config(&self, content: &str) { method setup_workspace (line 362) | pub fn setup_workspace(&self, project_paths: &[&str], config: &str) ->... method with_filtered_cache_size (line 382) | pub fn with_filtered_cache_size(mut self) -> Self { method with_filtered_cache_clean_summary (line 396) | pub fn with_filtered_cache_clean_summary(mut self) -> Self { constant INSTA_FILTERS (line 406) | pub const INSTA_FILTERS: &[(&str, &str)] = &[ function remove_bin_from_path (line 440) | pub(crate) fn remove_bin_from_path(bin: &str, path: Option) ->... FILE: crates/prek/tests/hook_impl.rs function hook_impl (line 17) | fn hook_impl() { function hook_impl_pre_push (line 66) | fn hook_impl_pre_push() -> anyhow::Result<()> { function hook_impl_runs_legacy_hook (line 184) | fn hook_impl_runs_legacy_hook() -> anyhow::Result<()> { function hook_impl_pre_push_runs_legacy_and_prek (line 243) | fn hook_impl_pre_push_runs_legacy_and_prek() -> anyhow::Result<()> { function set_executable (line 322) | fn set_executable(path: &Path) -> anyhow::Result<()> { function run_worktree (line 331) | fn run_worktree() -> anyhow::Result<()> { function git_dir_respected (line 398) | fn git_dir_respected() { function workspace_hook_impl_root (line 450) | fn workspace_hook_impl_root() -> anyhow::Result<()> { function workspace_hook_impl_subdirectory (line 528) | fn workspace_hook_impl_subdirectory() -> anyhow::Result<()> { function workspace_hook_impl_worktree_subdirectory (line 596) | fn workspace_hook_impl_worktree_subdirectory() -> anyhow::Result<()> { function workspace_hook_impl_no_project_found (line 674) | fn workspace_hook_impl_no_project_found() -> anyhow::Result<()> { function hook_impl_does_not_fail_when_no_hooks_match_stage (line 786) | fn hook_impl_does_not_fail_when_no_hooks_match_stage() -> anyhow::Result... function workspace_hook_impl_with_selectors (line 848) | fn workspace_hook_impl_with_selectors() -> anyhow::Result<()> { FILE: crates/prek/tests/identify.rs function identify_text_with_missing_paths (line 10) | fn identify_text_with_missing_paths() -> anyhow::Result<()> { function identify_json_with_missing_paths (line 43) | fn identify_json_with_missing_paths() -> anyhow::Result<()> { FILE: crates/prek/tests/install.rs function install (line 13) | fn install() -> anyhow::Result<()> { function install_with_quiet_flag (line 170) | fn install_with_quiet_flag() { function install_with_silent_flag (line 205) | fn install_with_silent_flag() { function install_with_verbose_flag (line 240) | fn install_with_verbose_flag() { function install_with_no_progress_flag (line 276) | fn install_with_no_progress_flag() { function install_with_git_dir (line 312) | fn install_with_git_dir() { function install_with_git_dir_allows_hooks_path_set (line 357) | fn install_with_git_dir_allows_hooks_path_set() { function install_uses_standard_permissions_by_default (line 391) | fn install_uses_standard_permissions_by_default() { function install_uses_group_permissions_for_shared_repository (line 412) | fn install_uses_group_permissions_for_shared_repository() { function install_uses_explicit_shared_repository_mode (line 439) | fn install_uses_explicit_shared_repository_mode() { function install_with_hooks (line 463) | fn install_with_hooks() -> anyhow::Result<()> { function install_with_legacy_install_hooks_flag_alias (line 525) | fn install_with_legacy_install_hooks_flag_alias() -> anyhow::Result<()> { function install_with_existing_legacy_hook (line 558) | fn install_with_existing_legacy_hook() -> anyhow::Result<()> { function install_hooks_only (line 606) | fn install_hooks_only() -> anyhow::Result<()> { function install_with_legacy_install_hooks_subcommand_alias (line 652) | fn install_with_legacy_install_hooks_subcommand_alias() -> anyhow::Resul... function uninstall (line 687) | fn uninstall() -> anyhow::Result<()> { function uninstall_all_managed_hooks (line 768) | fn uninstall_all_managed_hooks() -> anyhow::Result<()> { function uninstall_remove_legacy_hook (line 807) | fn uninstall_remove_legacy_hook() -> anyhow::Result<()> { function init_template_dir (line 867) | fn init_template_dir() -> anyhow::Result<()> { function util_init_template_dir (line 972) | fn util_init_template_dir() { function init_template_dir_non_git_repo (line 1010) | fn init_template_dir_non_git_repo() { function workspace_install (line 1045) | fn workspace_install() -> anyhow::Result<()> { function workspace_install_hooks (line 1212) | fn workspace_install_hooks() -> anyhow::Result<()> { function workspace_install_only_root_hook_types (line 1263) | fn workspace_install_only_root_hook_types() -> anyhow::Result<()> { function workspace_uninstall (line 1321) | fn workspace_uninstall() -> anyhow::Result<()> { function workspace_init_template_dir (line 1366) | fn workspace_init_template_dir() -> anyhow::Result<()> { function install_invalid_config_warning (line 1435) | fn install_invalid_config_warning() { FILE: crates/prek/tests/languages/bun.rs function basic_bun (line 10) | fn basic_bun() { function additional_dependencies (line 45) | fn additional_dependencies() { function language_version (line 110) | fn language_version() -> Result<()> { FILE: crates/prek/tests/languages/deno.rs function basic_deno (line 9) | fn basic_deno() { function script_file (line 44) | fn script_file() { function builtin_commands (line 88) | fn builtin_commands() { function remote_hook (line 132) | fn remote_hook() { function remote_hook_with_additional_dependencies (line 164) | fn remote_hook_with_additional_dependencies() { function remote_hook_with_local_file_additional_dependency (line 197) | fn remote_hook_with_local_file_additional_dependency() { function additional_dependencies (line 229) | fn additional_dependencies() { function additional_dependencies_local_file (line 281) | fn additional_dependencies_local_file() { function language_version (line 326) | fn language_version() { function without_system_deno (line 446) | fn without_system_deno() { function version_range (line 478) | fn version_range() { function hook_failure (line 525) | fn hook_failure() { function script_with_permissions (line 562) | fn script_with_permissions() { FILE: crates/prek/tests/languages/docker.rs function docker (line 7) | fn docker() { function workspace_docker (line 41) | fn workspace_docker() -> anyhow::Result<()> { FILE: crates/prek/tests/languages/docker_image.rs function docker_image (line 12) | fn docker_image() -> Result<()> { function docker_image_does_not_resolve_entry (line 90) | fn docker_image_does_not_resolve_entry() -> Result<()> { FILE: crates/prek/tests/languages/fail.rs function fail (line 8) | fn fail() -> Result<()> { FILE: crates/prek/tests/languages/golang.rs function language_version (line 11) | fn language_version() -> anyhow::Result<()> { function remote_hook (line 146) | fn remote_hook() { function local_additional_deps (line 242) | fn local_additional_deps() -> anyhow::Result<()> { function remote_go_mod_metadata_sets_language_version (line 326) | fn remote_go_mod_metadata_sets_language_version() -> anyhow::Result<()> { FILE: crates/prek/tests/languages/haskell.rs function local_hook (line 7) | fn local_hook() -> anyhow::Result<()> { function additional_dependencies (line 82) | fn additional_dependencies() { function remote_hook (line 120) | fn remote_hook() { FILE: crates/prek/tests/languages/julia.rs function local_hook (line 4) | fn local_hook() { function additional_dependencies (line 52) | fn additional_dependencies() { function project_toml (line 87) | fn project_toml() -> anyhow::Result<()> { function script_file (line 133) | fn script_file() -> anyhow::Result<()> { function remote_hook (line 176) | fn remote_hook() { FILE: crates/prek/tests/languages/lua.rs function health_check (line 6) | fn health_check() { function language_version (line 55) | fn language_version() { function hook_stderr (line 88) | fn hook_stderr() -> anyhow::Result<()> { function script_with_files (line 127) | fn script_with_files() -> anyhow::Result<()> { function lua_environment (line 184) | fn lua_environment() { function additional_dependencies (line 242) | fn additional_dependencies() { function remote_hook (line 278) | fn remote_hook() { FILE: crates/prek/tests/languages/node.rs function language_version (line 10) | fn language_version() -> anyhow::Result<()> { function additional_dependencies (line 137) | fn additional_dependencies() { function additional_dependencies_without_system_node (line 202) | fn additional_dependencies_without_system_node() -> anyhow::Result<()> { function npm_version (line 237) | fn npm_version() { FILE: crates/prek/tests/languages/pygrep.rs function basic_case_sensitive (line 9) | fn basic_case_sensitive() -> Result<()> { function case_insensitive (line 63) | fn case_insensitive() -> Result<()> { function multiline_mode (line 105) | fn multiline_mode() -> Result<()> { function negate_mode (line 147) | fn negate_mode() -> Result<()> { function negate_multiline_mode (line 187) | fn negate_multiline_mode() -> Result<()> { function invalid_regex (line 229) | fn invalid_regex() { function python_regex_quirks (line 262) | fn python_regex_quirks() -> Result<()> { function complex_regex_patterns (line 301) | fn complex_regex_patterns() -> Result<()> { function case_insensitive_multiline (line 341) | fn case_insensitive_multiline() -> Result<()> { function pattern_not_found (line 382) | fn pattern_not_found() -> Result<()> { function invalid_args (line 415) | fn invalid_args() -> Result<()> { FILE: crates/prek/tests/languages/python.rs function language_version (line 12) | fn language_version() -> anyhow::Result<()> { function invalid_version (line 146) | fn invalid_version() { function can_not_download (line 179) | fn can_not_download() { function additional_dependencies (line 228) | fn additional_dependencies() { function additional_dependencies_in_remote_repo (line 264) | fn additional_dependencies_in_remote_repo() -> anyhow::Result<()> { function hook_stderr (line 330) | fn hook_stderr() -> anyhow::Result<()> { function pep723_script (line 370) | fn pep723_script() -> anyhow::Result<()> { function git_env_vars_not_leaked_to_pip_install (line 434) | fn git_env_vars_not_leaked_to_pip_install() -> anyhow::Result<()> { function health_check_with_symlinked_toolchain (line 484) | fn health_check_with_symlinked_toolchain() -> anyhow::Result<()> { FILE: crates/prek/tests/languages/ruby.rs function system_ruby (line 7) | fn system_ruby() { function language_version_default (line 81) | fn language_version_default() { function specific_ruby_available (line 123) | fn specific_ruby_available() { function specific_ruby_unavailable (line 212) | fn specific_ruby_unavailable() { function additional_gem_dependencies (line 268) | fn additional_gem_dependencies() -> anyhow::Result<()> { function gemspec_workflow (line 356) | fn gemspec_workflow() -> anyhow::Result<()> { function environment_isolation (line 430) | fn environment_isolation() -> anyhow::Result<()> { function local_hook_with_gemspec (line 593) | fn local_hook_with_gemspec() -> anyhow::Result<()> { function native_gem_dependency (line 699) | fn native_gem_dependency() -> anyhow::Result<()> { function multiple_gemspecs (line 754) | fn multiple_gemspecs() -> anyhow::Result<()> { function prebuilt_vs_compiled_gems (line 879) | fn prebuilt_vs_compiled_gems() -> anyhow::Result<()> { function process_files (line 976) | fn process_files() -> anyhow::Result<()> { function auto_download (line 1040) | fn auto_download() -> anyhow::Result<()> { FILE: crates/prek/tests/languages/rust.rs function language_version (line 10) | fn language_version() -> Result<()> { function rustup_installer (line 109) | fn rustup_installer() { function additional_dependencies_cli (line 143) | fn additional_dependencies_cli() { function remote_hooks (line 179) | fn remote_hooks() { function remote_hook_non_workspace (line 212) | fn remote_hook_non_workspace() { function remote_hooks_with_lib_deps (line 245) | fn remote_hooks_with_lib_deps() { FILE: crates/prek/tests/languages/script.rs function script_run (line 15) | fn script_run() { function workspace_script_run (line 55) | fn workspace_script_run() -> Result<()> { function local_repo_bash_shebang (line 136) | fn local_repo_bash_shebang() -> Result<()> { function windows_script_run (line 179) | fn windows_script_run() -> Result<()> { FILE: crates/prek/tests/languages/swift.rs function local_hook_system_command (line 9) | fn local_hook_system_command() { function language_version_rejected (line 48) | fn language_version_rejected() { function health_check (line 84) | fn health_check() { function local_package_build (line 138) | fn local_package_build() -> anyhow::Result<()> { FILE: crates/prek/tests/languages/unimplemented.rs function unimplemented_language (line 4) | fn unimplemented_language() { FILE: crates/prek/tests/languages/unsupported.rs function unsupported_language (line 4) | fn unsupported_language() -> anyhow::Result<()> { FILE: crates/prek/tests/list.rs function list_basic (line 7) | fn list_basic() { function list_verbose (line 40) | fn list_verbose() { function list_with_hook_ids_filter (line 126) | fn list_with_hook_ids_filter() { function list_with_language_filter (line 174) | fn list_with_language_filter() { function list_with_stage_filter (line 220) | fn list_with_stage_filter() { function list_with_aliases (line 271) | fn list_with_aliases() { function list_empty_config (line 320) | fn list_empty_config() { function list_no_config_file (line 344) | fn list_no_config_file() { function list_json_output (line 362) | fn list_json_output() { function workspace_list (line 471) | fn workspace_list() -> anyhow::Result<()> { function list_with_selectors (line 662) | fn list_with_selectors() -> anyhow::Result<()> { FILE: crates/prek/tests/list_builtins.rs function list_builtins_basic (line 6) | fn list_builtins_basic() { function list_builtins_verbose (line 35) | fn list_builtins_verbose() { function list_builtins_json (line 95) | fn list_builtins_json() { FILE: crates/prek/tests/meta_hooks.rs function meta_hooks (line 9) | fn meta_hooks() -> anyhow::Result<()> { function meta_hooks_unknown_hook (line 74) | fn meta_hooks_unknown_hook() { function check_useless_excludes_remote (line 104) | fn check_useless_excludes_remote() -> anyhow::Result<()> { function meta_hooks_workspace (line 156) | fn meta_hooks_workspace() -> anyhow::Result<()> { function check_useless_excludes_workspace_paths_are_project_relative (line 226) | fn check_useless_excludes_workspace_paths_are_project_relative() -> anyh... FILE: crates/prek/tests/run.rs function run_basic (line 16) | fn run_basic() -> Result<()> { function run_glob_patterns_with_multiple_hooks (line 77) | fn run_glob_patterns_with_multiple_hooks() -> Result<()> { function run_in_non_git_repo (line 133) | fn run_in_non_git_repo() { function invalid_config (line 156) | fn invalid_config() { function same_repo (line 272) | fn same_repo() -> Result<()> { function local (line 319) | fn local() { function multiple_hook_ids (line 348) | fn multiple_hook_ids() { function priorities_respected (line 470) | fn priorities_respected() { function priority_fail_fast_stops_later_groups (line 513) | fn priority_fail_fast_stops_later_groups() { function priority_group_modified_files_is_group_failure_and_output_is_indented (line 558) | fn priority_group_modified_files_is_group_failure_and_output_is_indented... function config_not_staged (line 628) | fn config_not_staged() -> Result<()> { function config_outside_repo (line 659) | fn config_outside_repo() -> Result<()> { function cjk_hook_name (line 695) | fn cjk_hook_name() { function skips (line 728) | fn skips() { function stage (line 779) | fn stage() { function fallback_to_manual_stage (line 838) | fn fallback_to_manual_stage() { function files_and_exclude (line 921) | fn files_and_exclude() -> Result<()> { function file_types (line 1022) | fn file_types() -> Result<()> { function fail_fast (line 1095) | fn fail_fast() { function fail_fast_cli_flag (line 1149) | fn fail_fast_cli_flag() { function subdirectory (line 1200) | fn subdirectory() -> Result<()> { function log_file (line 1253) | fn log_file() { function pass_env_vars (line 1287) | fn pass_env_vars() { function staged_files_only (line 1318) | fn staged_files_only() -> Result<()> { function restore_on_interrupt (line 1374) | fn restore_on_interrupt() -> Result<()> { function merge_conflicts (line 1428) | fn merge_conflicts() -> Result<()> { function local_python_hook (line 1501) | fn local_python_hook() { function invalid_entry (line 1533) | fn invalid_entry() { function init_nonexistent_repo (line 1563) | fn init_nonexistent_repo() { function types_directory (line 1608) | fn types_directory() -> Result<()> { function run_last_commit (line 1668) | fn run_last_commit() -> Result<()> { function run_multiple_files (line 1750) | fn run_multiple_files() -> Result<()> { function run_no_files (line 1786) | fn run_no_files() { function run_directory (line 1817) | fn run_directory() -> Result<()> { function minimum_prek_version (line 1948) | fn minimum_prek_version() { function color (line 1994) | fn color() -> Result<()> { function shebang_script (line 2055) | fn shebang_script() -> Result<()> { function git_commit_a (line 2100) | fn git_commit_a() -> Result<()> { function git_commit_a_currently_fails_when_hook_writes_to_temp_git_index (line 2172) | fn git_commit_a_currently_fails_when_hook_writes_to_temp_git_index() -> ... function write_pre_commit_config (line 2270) | fn write_pre_commit_config(path: &Path, hooks: &[(&str, &str)]) -> Resul... function selectors_completion (line 2298) | fn selectors_completion() -> Result<()> { function reuse_env (line 2435) | fn reuse_env() -> Result<()> { function dry_run (line 2515) | fn dry_run() { function alternate_config_file (line 2547) | fn alternate_config_file() -> Result<()> { function prek_toml (line 2642) | fn prek_toml() -> Result<()> { function show_diff_on_failure (line 2680) | fn show_diff_on_failure() -> Result<()> { function run_quiet (line 2825) | fn run_quiet() { function run_quiet_env (line 2871) | fn run_quiet_env() { function run_log_file (line 2917) | fn run_log_file() { function system_language_version (line 2974) | fn system_language_version() { function empty_entry (line 3062) | fn empty_entry() { function run_with_stdin_closed (line 3092) | fn run_with_stdin_closed() { function version_info (line 3137) | fn version_info() { function expands_tilde_in_prek_home (line 3162) | fn expands_tilde_in_prek_home() -> Result<()> { function run_with_tree_object_as_ref (line 3209) | fn run_with_tree_object_as_ref() -> Result<()> { function pass_filenames_1_limits_batch_size (line 3261) | fn pass_filenames_1_limits_batch_size() -> Result<()> { function pass_filenames_2_limits_batch_size (line 3302) | fn pass_filenames_2_limits_batch_size() -> Result<()> { FILE: crates/prek/tests/sample_config.rs function sample_config (line 8) | fn sample_config() -> anyhow::Result<()> { function sample_config_toml (line 101) | fn sample_config_toml() { function sample_config_format (line 129) | fn sample_config_format() { function respect_format (line 183) | fn respect_format() { function respect_format_if_filename_missing (line 211) | fn respect_format_if_filename_missing() { FILE: crates/prek/tests/skipped_hooks.rs function all_hooks_skipped_no_matching_files (line 19) | fn all_hooks_skipped_no_matching_files() -> Result<()> { function dry_run_skips_all_hooks (line 68) | fn dry_run_skips_all_hooks() -> Result<()> { function mixed_skipped_and_executed_hooks (line 110) | fn mixed_skipped_and_executed_hooks() -> Result<()> { function all_hooks_skipped_multiple_priority_groups (line 165) | fn all_hooks_skipped_multiple_priority_groups() -> Result<()> { FILE: crates/prek/tests/try_repo.rs function create_hook_repo (line 11) | fn create_hook_repo(context: &TestContext, repo_name: &str) -> Result R... function try_repo_basic (line 117) | fn try_repo_basic() -> Result<()> { function try_repo_failing_hook (line 150) | fn try_repo_failing_hook() -> Result<()> { function try_repo_specific_hook (line 185) | fn try_repo_specific_hook() -> Result<()> { function try_repo_specific_rev (line 218) | fn try_repo_specific_rev() -> Result<()> { function try_repo_uncommitted_changes (line 283) | fn try_repo_uncommitted_changes() -> Result<()> { function try_repo_relative_path (line 339) | fn try_repo_relative_path() -> Result<()> { FILE: crates/prek/tests/validate.rs function validate_config (line 9) | fn validate_config() -> anyhow::Result<()> { function invalid_config_error (line 69) | fn invalid_config_error() { function validate_manifest (line 120) | fn validate_manifest() -> anyhow::Result<()> { function unexpected_keys_warning (line 188) | fn unexpected_keys_warning() { FILE: crates/prek/tests/workspace.rs function basic_discovery (line 12) | fn basic_discovery() -> Result<()> { function config_not_staged (line 209) | fn config_not_staged() -> Result<()> { function run_with_selectors (line 296) | fn run_with_selectors() -> Result<()> { function skips (line 613) | fn skips() -> Result<()> { function workspace_no_projects (line 857) | fn workspace_no_projects() { function gitignore_respected (line 877) | fn gitignore_respected() -> Result<()> { function nested_project_exclude_is_relative (line 938) | fn nested_project_exclude_is_relative() -> Result<()> { function reference_files_across_projects (line 1013) | fn reference_files_across_projects() -> Result<()> { function submodule_discovery (line 1050) | fn submodule_discovery() -> Result<()> { function cookiecutter_template_directories_are_skipped (line 1144) | fn cookiecutter_template_directories_are_skipped() -> Result<()> { function orphan_projects (line 1193) | fn orphan_projects() -> Result<()> { function relative_repo_path_resolution (line 1373) | fn relative_repo_path_resolution() -> Result<()> { FILE: crates/prek/tests/yaml_to_toml.rs constant YAML_CONFIG (line 9) | const YAML_CONFIG: &str = r#" function yaml_to_toml_writes_default_output (line 58) | fn yaml_to_toml_writes_default_output() -> anyhow::Result<()> { function yaml_to_toml_force_overwrite (line 154) | fn yaml_to_toml_force_overwrite() -> anyhow::Result<()> { function yaml_to_toml_rejects_invalid_config (line 197) | fn yaml_to_toml_rejects_invalid_config() -> anyhow::Result<()> { function yaml_to_toml_same_output (line 229) | fn yaml_to_toml_same_output() -> anyhow::Result<()> { function yaml_to_toml_discovers_pre_commit_config_yaml (line 261) | fn yaml_to_toml_discovers_pre_commit_config_yaml() -> anyhow::Result<()> { function yaml_to_toml_discovers_pre_commit_config_yml (line 291) | fn yaml_to_toml_discovers_pre_commit_config_yml() -> anyhow::Result<()> { function yaml_to_toml_prefers_yaml_over_yml (line 321) | fn yaml_to_toml_prefers_yaml_over_yml() -> anyhow::Result<()> { function yaml_to_toml_error_when_no_config_found (line 371) | fn yaml_to_toml_error_when_no_config_found() { FILE: python/prek/__main__.py function _run (line 6) | def _run() -> None: FILE: python/prek/_find_prek.py class PrekNotFound (line 28) | class PrekNotFound(FileNotFoundError): ... function find_prek_bin (line 31) | def find_prek_bin() -> str: function _module_path (line 75) | def _module_path() -> str | None: function _matching_parents (line 80) | def _matching_parents(path: str | None, match: str) -> str | None: function _join (line 106) | def _join(path: str | None, *parts: str) -> str | None: function _user_scheme (line 112) | def _user_scheme() -> str: FILE: scripts/update-macports-portfile.py function run (line 20) | def run(cmd: list[str], *, capture: bool = False) -> str: function repo_root (line 32) | def repo_root() -> Path: function read_version (line 37) | def read_version(cargo_toml: Path) -> str: function replace_github_setup_version (line 45) | def replace_github_setup_version(portfile_text: str, version: str) -> str: function download_distfile (line 58) | def download_distfile(version: str) -> Path: function openssl_digest (line 68) | def openssl_digest(algorithm: str, file_path: Path) -> str: function update_checksums_block (line 75) | def update_checksums_block(portfile_text: str, rmd160: str, sha256: str,... function ensure_cargo2port (line 103) | def ensure_cargo2port() -> None: function generated_cargo_crates (line 118) | def generated_cargo_crates(cargo_lock: Path) -> str: function replace_cargo_crates_block (line 122) | def replace_cargo_crates_block(portfile_text: str, crates_block: str) ->... function main (line 131) | def main() -> None: