Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Ruff を導入する
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Mar 7, 2024
1 parent 80daf24 commit 5456c4b
Show file tree
Hide file tree
Showing 19 changed files with 1,227 additions and 1,110 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"]
}
14 changes: 9 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--max-line-length=120"],
"python.linting.enabled": true,
"python.formatting.autopep8Args": ["--max-line-length", "120", "--experimental"],
"python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "basic",
"[python]": {
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
"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
Loading

0 comments on commit 5456c4b

Please sign in to comment.