Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub codespaces setup #65

Merged
merged 4 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
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
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 = ''