Skip to content

Commit 1dbe049

Browse files
committed
에디터 설정 및 pre-commit 설정 변경
1 parent a971da6 commit 1dbe049

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ repos:
1616
hooks:
1717
# Run the linter.
1818
- id: ruff
19-
args: [--fix]
19+
args: [--fix, --extend-select, F401]
2020
# Run the formatter.
2121
- id: ruff-format

.vscode/settings.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
3-
"python.linting.enabled": true,
4-
53
"[python]": {
4+
"editor.defaultFormatter": "charliermarsh.ruff",
65
"editor.formatOnSave": true,
76
"editor.insertSpaces": true,
87
"editor.tabSize": 4,
98
"editor.codeActionsOnSave": {
10-
"python.sortImports": "explicit",
11-
"source.organizeImports": "explicit",
12-
"source.fixAll": "always"
9+
"python.sortImports": "always",
10+
"source.organizeImports": "always",
11+
"source.fixAll": "always",
12+
"source.fixAll.ruff": "always",
13+
"source.organizeImports.ruff": "always",
14+
"source.unusedImports": "always"
1315
}
1416
},
1517
"python.testing.pytestArgs": ["solutions"],
1618
"python.testing.unittestEnabled": false,
17-
"python.testing.pytestEnabled": true,
18-
"ruff.lint.select": ["F401"]
19+
"python.testing.pytestEnabled": true
1920
}

0 commit comments

Comments
 (0)