Skip to content

Commit

Permalink
Codespace dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR1D committed Jan 12, 2024
1 parent a747d4a commit 4ad7893
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 41 deletions.
58 changes: 58 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:0-3.9-bullseye",

"customizations": {
"vscode": {
"settings": {
"python.linting.enabled": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"cSpell.words": [
"OPENAI",
"secho",
"sgpt",
"Typer"
],
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"files.exclude": {
"**/.git/**": true,
"**/.mypy_cache/**": true,
"**/__pycache__/**": true
},
"files.watcherExclude": {
"**/.git/**": true,
"**/.mypy_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
},
"launch": {
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "sgpt",
"justMyCode": true,
"args": ["--chat", "init", "hello"]
}
]
}
},
"extensions": [
"GitHub.copilot",
"charliermarsh.ruff",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"ms-python.isort",
"ms-python.mypy-type-checker",
"ms-python.pylint"
]
}
},

"remoteUser": "vscode",
"postCreateCommand": "echo __pycache__ > ~/.gitignore && git config --global core.excludesfile ~/.gitignore && pip3 install -e .'[dev,test]'"
}
17 changes: 0 additions & 17 deletions .vscode/launch.json

This file was deleted.

23 changes: 0 additions & 23 deletions .vscode/settings.json

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@ ignore = [

[tool.codespell]
skip = '.git,venv'
# ignore-words-list = ''

0 comments on commit 4ad7893

Please sign in to comment.