mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:54:42 +00:00
cache: tweak generated .gitignore (#10226)
- Add a notice that this file was generated by ruff - Add a trailing newline
This commit is contained in:
parent
a6d892b1f4
commit
00300c0d9d
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ pub(crate) fn init(path: &Path) -> Result<()> {
|
||||||
let gitignore_path = path.join(".gitignore");
|
let gitignore_path = path.join(".gitignore");
|
||||||
if !gitignore_path.exists() {
|
if !gitignore_path.exists() {
|
||||||
let mut file = fs::File::create(gitignore_path)?;
|
let mut file = fs::File::create(gitignore_path)?;
|
||||||
file.write_all(b"*")?;
|
file.write_all(b"# Automatically created by ruff.\n*\n")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue