From b913f568c41b9fb4dd3ca744bb9621e56d95b026 Mon Sep 17 00:00:00 2001 From: David Peter Date: Mon, 19 May 2025 16:50:48 +0200 Subject: [PATCH] [ty] Mark generated files as such in .gitattributes (#18195) ## Summary See comment here: https://github.com/astral-sh/ruff/pull/18156#discussion_r2095850586 --- .gitattributes | 1 + crates/ty/docs/.gitattributes | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 crates/ty/docs/.gitattributes diff --git a/.gitattributes b/.gitattributes index 966aa80ecf..a12cb611c7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,6 +21,7 @@ crates/ruff_linter/resources/test/fixtures/pyupgrade/UP018_LF.py text eol=lf crates/ruff_python_parser/resources/inline linguist-generated=true ruff.schema.json -diff linguist-generated=true text=auto eol=lf +ty.schema.json -diff linguist-generated=true text=auto eol=lf crates/ruff_python_ast/src/generated.rs -diff linguist-generated=true text=auto eol=lf crates/ruff_python_formatter/src/generated.rs -diff linguist-generated=true text=auto eol=lf *.md.snap linguist-language=Markdown diff --git a/crates/ty/docs/.gitattributes b/crates/ty/docs/.gitattributes new file mode 100644 index 0000000000..5d0bdac7fe --- /dev/null +++ b/crates/ty/docs/.gitattributes @@ -0,0 +1,3 @@ +rules.md -diff linguist-generated=true text=auto eol=lf +cli.md -diff linguist-generated=true text=auto eol=lf +configuration.md -diff linguist-generated=true text=auto eol=lf