Skip to content

Commit

Permalink
GitHub codespaces setup (TheR1D#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR1D authored Jan 12, 2024
1 parent 20ff0f2 commit 334580c
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
57 changes: 57 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:0-3.9-bullseye",

"customizations": {
"vscode": {
"settings": {
"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]'"
}
4 changes: 2 additions & 2 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
run: isort sgpt tests scripts --check-only
- name: ruff
run: ruff sgpt tests scripts
- name: mypy
run: mypy sgpt --exclude function.py --exclude handler.py --exclude default_functions
# - name: mypy
# run: mypy sgpt --exclude function.py --exclude handler.py --exclude default_functions
- name: unittests
run: |
export OPENAI_API_KEY=test_api_key
Expand Down
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 334580c

Please sign in to comment.