Skip to content

Commit

Permalink
Remove incorrect reference to RUFF_CACHE_DIR
Browse files Browse the repository at this point in the history
The function doesn't consider RUFF_CACHE_DIR, that is handled elsewhere.
  • Loading branch information
Thomas de Zeeuw committed Jun 15, 2023
1 parent 097823b commit 89a8c31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ruff_cache/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ pub mod globset;

pub const CACHE_DIR_NAME: &str = ".ruff_cache";

/// Return the cache directory for a given project root. Defers to the
/// `RUFF_CACHE_DIR` environment variable, if set.
/// Return the cache directory for a given project root.
pub fn cache_dir(project_root: &Path) -> PathBuf {
project_root.join(CACHE_DIR_NAME)
}

0 comments on commit 89a8c31

Please sign in to comment.