Skip to content

Commit

Permalink
fix: disable notebook formatting for a bit (breaks vscode)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 20, 2023
1 parent 720155f commit 24909d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Adapter for [Ruff](https://github.com/astral-sh/ruff) for use as a formatting plugin in [dprint](https://github.com/dprint/dprint).

Formats .py, .pyi, and .ipynb files.
Formats .py, and .pyi files.

## Install

Expand Down
7 changes: 6 additions & 1 deletion src/wasm_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ impl SyncPluginHandler<Configuration> for RuffPluginHandler {
update_url: Some("https://plugins.dprint.dev/dprint/dprint-plugin-ruff/latest.json".to_string()),
},
file_matching: FileMatchingInfo {
file_extensions: vec!["py".to_string(), "pyi".to_string(), "ipynb".to_string()],
file_extensions: vec![
"py".to_string(),
"pyi".to_string(),
// disabled for a bit because I found it breaks notebooks in vscode
// "ipynb".to_string()
],
file_names: vec![],
},
}
Expand Down

0 comments on commit 24909d3

Please sign in to comment.