Skip to content

Commit

Permalink
Ruff を導入する
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Mar 7, 2024
1 parent e7d2378 commit e517711
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 324 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["charliermarsh.ruff", "ms-python.mypy-type-checker"]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "basic",
"[python]": {
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.autoIndent": "full",
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "always",
"source.organizeImports.ruff": "explicit"
}
},
"[cpp]": {
"editor.formatOnSave": true
},
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line-length = 100
Loading

0 comments on commit e517711

Please sign in to comment.