Skip to content

Commit 5a10b15

Browse files
committed
feat: more to uv + ruff
1 parent bfd0f2b commit 5a10b15

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.vscode/settings.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
3+
4+
// Make Ruff the Python formatter (scoped to Python only)
5+
"[python]": {
6+
"editor.defaultFormatter": "charliermarsh.ruff",
7+
"editor.formatOnSave": true,
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.ruff": "explicit",
10+
"source.organizeImports": "explicit"
11+
}
12+
},
13+
14+
// Turn on Ruff features
15+
"ruff.lint.enable": true,
16+
"ruff.format.enable": true,
17+
"ruff.organizeImports": true,
18+
19+
// Point the extension at project Ruff (recommended)
20+
"ruff.path": [".venv/bin/ruff"],
21+
"ruff.lint.args": ["--unfixable", "F401,F841"],
22+
23+
// Give code actions enough time
24+
"editor.codeActionsOnSaveTimeout": 3000
25+
}

src/my_package/py.typed

Whitespace-only changes.

tests/test_placeholder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_placeholder():
2+
assert True

0 commit comments

Comments
 (0)