mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-07 17:10:31 +00:00
[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:
parent
f9bc80ad55
commit
4067a7e50c
2 changed files with 7 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue