Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit f4a5213

Browse files
committed
Add VS Code settings
1 parent a68cdeb commit f4a5213

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ ENV/
104104
# mypy
105105
.mypy_cache/
106106

107-
# .vscode
108-
.vscode/
109-
110107
# OS files
111108
.DS_Store
112109

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"python.analysis.typeCheckingMode": "basic",
3+
"python.analysis.autoImportCompletions": true,
4+
"python.envFile": "${workspaceFolder}/.env.testing",
5+
"python.terminal.activateEnvironment": true,
6+
"python.terminal.activateEnvInCurrentTerminal": true,
7+
"python.testing.unittestEnabled": false,
8+
"python.testing.pytestEnabled": true,
9+
"editor.rulers": [88],
10+
"python.defaultInterpreterPath": "${workspaceFolder}/.hatch/fief-python/bin/python",
11+
"python.testing.pytestPath": "${workspaceFolder}/.hatch/fief-python/bin/pytest",
12+
"python.testing.cwd": "${workspaceFolder}",
13+
"python.testing.pytestArgs": ["-n 0", "--no-cov"],
14+
"[python]": {
15+
"editor.formatOnSave": true,
16+
"editor.codeActionsOnSave": {
17+
"source.fixAll": "explicit",
18+
"source.organizeImports": "explicit"
19+
},
20+
"editor.defaultFormatter": "charliermarsh.ruff"
21+
}
22+
}

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ignore_missing_imports = true
88

99
[tool.ruff]
1010
target-version = "py38"
11+
12+
[tool.ruff.lint]
1113
extend-select = ["I", "UP", "TRY"]
1214
ignore = ["E501"]
1315
per-file-ignores = {"tests/test_init.py" = ["F401"]}

0 commit comments

Comments
 (0)