Skip to content

Commit 57a50be

Browse files
author
drickett
committed
migrate package management to uv
1 parent f92bf05 commit 57a50be

File tree

7 files changed

+1159
-713
lines changed

7 files changed

+1159
-713
lines changed

.devcontainer/devcontainer.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"image": "python:3.10-slim",
5+
"features": {
6+
"ghcr.io/devcontainers/features/git:1": {
7+
"ppa": true,
8+
"version": "latest"
9+
},
10+
"ghcr.io/va-h/devcontainers-features/uv:1": {
11+
"shellautocompletion": true,
12+
"version": "latest"
13+
},
14+
"ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {},
15+
"ghcr.io/itsmechlark/features/redis-server:1": {
16+
"version": "latest"
17+
}
18+
},
19+
"updateRemoteUserUID": true,
20+
"containerEnv": {
21+
"WORKON_HOME": "${containerWorkspaceFolder}/.venv",
22+
"PYTHONPATH": "${containerWorkspaceFolder}"
23+
},
24+
"onCreateCommand": {
25+
"update apt": [
26+
"/usr/bin/apt",
27+
"update"
28+
],
29+
"sync venv/install if missing": [
30+
"/usr/local/bin/uv",
31+
"sync",
32+
"--frozen"
33+
]
34+
},
35+
"postCreateCommand": {
36+
"install ssh client": [
37+
"/usr/bin/apt",
38+
"install",
39+
"--no-install-recommends",
40+
"-y",
41+
"openssh-client"
42+
]
43+
},
44+
"postAttachCommand": {
45+
"message": [
46+
"/usr/bin/echo",
47+
"Sleeping while environment activates"
48+
],
49+
"sleep": [
50+
"/usr/bin/sleep",
51+
"10s"
52+
]
53+
},
54+
"customizations": {
55+
"vscode": {
56+
"extensions": [
57+
"ms-python.python",
58+
"ryanluker.vscode-coverage-gutters",
59+
"ms-azuretools.vscode-docker",
60+
"ms-python.isort",
61+
"matangover.mypy",
62+
"davidanson.vscode-markdownlint",
63+
"ms-vscode.vscode-typescript-next",
64+
"charliermarsh.ruff",
65+
"tamasfe.even-better-toml",
66+
"mechatroner.rainbow-csv"
67+
],
68+
"settings": {
69+
"python.terminal.activateEnvironment": true,
70+
"python.terminal.activateEnvInCurrentTerminal": true,
71+
"python.venvPath": "${containerWorkspaceFolder}"
72+
}
73+
}
74+
}
75+
}

.vscode/extensions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"ryanluker.vscode-coverage-gutters",
5+
"ms-azuretools.vscode-docker",
6+
"ms-python.isort",
7+
"matangover.mypy",
8+
"davidanson.vscode-markdownlint",
9+
"ms-vscode.vscode-typescript-next",
10+
"charliermarsh.ruff",
11+
"tamasfe.even-better-toml",
12+
"mechatroner.rainbow-csv"
13+
],
14+
}

.vscode/settings.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"[python]": {
3+
"diffEditor.ignoreTrimWhitespace": true,
4+
"editor.detectIndentation": false,
5+
"editor.tabSize": 4,
6+
"editor.wordBasedSuggestions": "off",
7+
"gitlens.codeLens.symbolScopes": [
8+
"!Module"
9+
],
10+
"editor.codeActionsOnSave": {
11+
"source.organizeImports.ruff": "always"
12+
},
13+
"editor.formatOnSave": true,
14+
"editor.defaultFormatter": "charliermarsh.ruff"
15+
},
16+
"editor.renderControlCharacters": true,
17+
"editor.renderFinalNewline": "dimmed",
18+
"editor.renderWhitespace": "none",
19+
"editor.rulers": [
20+
80,
21+
110
22+
],
23+
"files.associations": {
24+
"*.env": "properties"
25+
},
26+
"files.encoding": "utf8",
27+
"files.eol": "\n",
28+
"files.insertFinalNewline": true,
29+
"files.trimFinalNewlines": true,
30+
"files.trimTrailingWhitespace": true,
31+
"python.envFile": "${workspaceFolder}/.env",
32+
"python.languageServer": "Default",
33+
"python.terminal.activateEnvironment": true,
34+
"python.testing.autoTestDiscoverOnSaveEnabled": true,
35+
"python.testing.pytestArgs": [
36+
"tests"
37+
],
38+
"python.testing.pytestEnabled": true,
39+
"python.testing.unittestEnabled": false,
40+
"search.exclude": {
41+
"**/.pytest_cache": false,
42+
"**/.venv": false,
43+
"**/__pycache__": false,
44+
"**/output": false
45+
},
46+
"testing.gutterEnabled": true
47+
}

Pipfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)