From e389201b5f0243d537fbb8751673b61d2e1e92ea Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 14 Dec 2022 16:04:06 -0500 Subject: [PATCH] Add new .gitignore behavior to BREAKING_CHANGES.md (#1240) --- BREAKING_CHANGES.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BREAKING_CHANGES.md b/BREAKING_CHANGES.md index 7cd8ca61e7..db8293ac66 100644 --- a/BREAKING_CHANGES.md +++ b/BREAKING_CHANGES.md @@ -1,5 +1,16 @@ # Breaking Changes +## Upcoming + +### Files excluded by `.gitignore` are now ignored ([#1234](https://github.com/charliermarsh/ruff/pull/1234)) + +Ruff will now avoid checking files that are excluded by a `.gitignore`. This behavior is powered by +the [`ignore`](https://docs.rs/ignore/latest/ignore/struct.WalkBuilder.html#ignore-rules), and is +applied in addition to Ruff's built-in `exclude` system. + +Note that hidden files (i.e., files and directories prefixed with a `.`) are _not_ ignored by +default. + ## 0.0.178 ### Configuration files are now resolved hierarchically ([#1190](https://github.com/charliermarsh/ruff/pull/1190))