[red-knot] Don't check non-python files (#17021)

## Summary

Fixes https://github.com/astral-sh/ruff/issues/17018

## Test Plan

I renamed a python file to `knot.toml` and verified that there are no
diagnostics. Renaming back the file to `*.py` brings back the
diagnostics
This commit is contained in:
Micha Reiser 2025-03-27 20:45:04 +01:00 committed by GitHub
parent f9bc80ad55
commit 4067a7e50c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -214,6 +214,10 @@ impl FileHandle {
pub fn js_to_string(&self) -> String {
format!("file(id: {:?}, path: {})", self.file, self.path)
}
pub fn path(&self) -> String {
self.path.to_string()
}
}
#[wasm_bindgen]