[ty] Mark generated files as such in .gitattributes (#18195)

## Summary

See comment here:
https://github.com/astral-sh/ruff/pull/18156#discussion_r2095850586
This commit is contained in:
David Peter 2025-05-19 16:50:48 +02:00 committed by GitHub
parent 4c889d5251
commit b913f568c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

1
.gitattributes vendored
View file

@ -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

3
crates/ty/docs/.gitattributes vendored Normal file
View file

@ -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