mirror of https://github.com/astral-sh/ruff
Adds recommended extension settings for vscode (#11519)
This commit is contained in:
parent
9200dfc79f
commit
6be00d5775
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"rust-lang.rust-analyzer"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"rust-analyzer.check.extraArgs": [
|
||||||
|
"--all-features"
|
||||||
|
],
|
||||||
|
"rust-analyzer.check.command": "clippy",
|
||||||
|
}
|
||||||
|
|
@ -101,6 +101,8 @@ pre-commit run --all-files --show-diff-on-failure # Rust and Python formatting,
|
||||||
These checks will run on GitHub Actions when you open your pull request, but running them locally
|
These checks will run on GitHub Actions when you open your pull request, but running them locally
|
||||||
will save you time and expedite the merge process.
|
will save you time and expedite the merge process.
|
||||||
|
|
||||||
|
If you're using VS Code, you can also install the recommended [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) extension to get these checks while editing.
|
||||||
|
|
||||||
Note that many code changes also require updating the snapshot tests, which is done interactively
|
Note that many code changes also require updating the snapshot tests, which is done interactively
|
||||||
after running `cargo test` like so:
|
after running `cargo test` like so:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue