Skip to content

Commit

Permalink
Merge pull request #242 from lpsinger/vscode-ruff
Browse files Browse the repository at this point in the history
Switch VS Code formatter to ruff
  • Loading branch information
dakota002 authored Nov 22, 2024
2 parents 63c76a4 + 624aeb0 commit 43cb655
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ repos:
- id: trailing-whitespace
# Trims trailing whitespace.
exclude_types: [python] # Covered by Ruff W291.
- id: pretty-format-json
args: ['--autofix']
# Checks that all your JSON files are pretty.
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.4
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"charliermarsh.ruff"
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"editor.defaultFormatter": "ms-python.black-formatter"
"editor.defaultFormatter": "charliermarsh.ruff"
}

0 comments on commit 43cb655

Please sign in to comment.