Skip to content

Commit

Permalink
chore: replace black with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Oct 28, 2023
1 parent 51fd087 commit 93fb927
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 218 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ repos:
- id: actionlint

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
rev: v0.1.3
hooks:
- id: ruff-format
- id: ruff
args: [--fix]

Expand Down
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"ms-python.python",
"ms-python.black-formatter",
"charliermarsh.ruff"
]
"recommendations": ["ms-python.python", "charliermarsh.ruff"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Workspace settings override user settings.
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
Expand Down
Loading

0 comments on commit 93fb927

Please sign in to comment.