Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .devcontainer/devnew.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{

Check failure on line 1 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (INP001)

.devcontainer/devnew.py:1:1: INP001 File `.devcontainer/devnew.py` is part of an implicit namespace package. Add an `__init__.py`.
"name": "Python 3",

Check failure on line 2 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:2:1: W191 Indentation contains tabs
"build": {

Check failure on line 3 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:3:1: W191 Indentation contains tabs
"dockerfile": "Dockerfile",

Check failure on line 4 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:4:1: W191 Indentation contains tabs
"context": "..",

Check failure on line 5 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:5:1: W191 Indentation contains tabs
"args": {

Check failure on line 6 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:6:1: W191 Indentation contains tabs
// Update 'VARIANT' to pick a Python version: 3, 3.11, 3.10, 3.9, 3.8

Check failure on line 7 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (invalid-syntax)

.devcontainer/devnew.py:7:24: invalid-syntax: Expected ',', found name

Check failure on line 7 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (invalid-syntax)

.devcontainer/devnew.py:7:14: invalid-syntax: Expected ',', found string

Check failure on line 7 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (invalid-syntax)

.devcontainer/devnew.py:7:4: invalid-syntax: Expected an expression

Check failure on line 7 in .devcontainer/devnew.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

.devcontainer/devnew.py:7:1: W191 Indentation contains tabs
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.12-bookworm"
}
},

"postCreateCommand": "zsh .devcontainer/post_install",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"terminal.integrated.defaultProfile.linux": "zsh"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}