Skip to content

Commit

Permalink
adding codespace config
Browse files Browse the repository at this point in the history
  • Loading branch information
MattReimer committed Jan 12, 2024
1 parent e94845c commit 933b483
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 189 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
############################################################################################
# Dev Container for riverscapes-tools
############################################################################################
FROM mcr.microsoft.com/devcontainers/python:3.11 AS worker

# Some preliminary dependencies
RUN apt update && apt upgrade -y && apt autoremove -y

# Now install any lingering dependencies
COPY requirements.docker.txt /workspaces/requirements.txt
RUN pip --timeout=120 install -r /workspaces/requirements.txt

# Now install user preferences
USER vscode
RUN wget https://raw.githubusercontent.com/Riverscapes/environment/master/nar-ys.zsh-theme -O ~/.oh-my-zsh/custom/themes/nar-ys.zsh-theme
RUN wget https://raw.githubusercontent.com/Riverscapes/environment/master/.aliases -O ~/.aliases
RUN wget https://raw.githubusercontent.com/Riverscapes/environment/master/.zshrc -O ~/.zshrc
61 changes: 61 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Riverscapes XML",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"[python]": {
"editor.tabSize": 4,
"editor.formatOnSave": true
},
"python.analysis.extraPaths": ["../../lib/commons"],
"pylint.args": [
"--extension-pkg-whitelist=pygeoprocessing",
"--ignore=E501",
"--max-line-length=240"
],
"python.terminal.activateEnvironment": true,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": true,
"files.watcherExclude": {
"**/*.egg-info/**": true,
"**/docs/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
},
"search.exclude": {
"**/*.egg-info/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
},
"files.exclude": {
"**/*.egg-info/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
}
},
// Suggested extensions that will be installed for everyone
"extensions": [
"mhutchie.git-graph",
"ms-python.autopep8",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"njpwerner.autodocstring",
"redhat.vscode-xml",
"unifiedjs.vscode-mdx",
"yzhang.markdown-all-in-one",
"GitHub.copilot-chat",
"GitHub.copilot"
]
}
}
}
16 changes: 16 additions & 0 deletions .devcontainer/requirements.docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
autopep8==1.7.0
charset-normalizer==3.1.0
exceptiongroup==1.1.1
jsonschema==4.15.0
lxml==4.9.2
packaging==23.1
pluggy==1.0.0
pycodestyle==2.10.0
pylint==2.15.0
pytest==7.2.0
requests==2.31.0
semver==3.0.0
termcolor==2.3.0
toml==0.10.2
tomli==2.0.1
urllib3==2.0.2
114 changes: 0 additions & 114 deletions .vscode/.ropeproject/config.py

This file was deleted.

Binary file removed .vscode/.ropeproject/objectdb
Binary file not shown.
1 change: 0 additions & 1 deletion .vscode/settings.json

This file was deleted.

94 changes: 45 additions & 49 deletions RSXML-RiverscapesXML.code-workspace
Original file line number Diff line number Diff line change
@@ -1,66 +1,62 @@
{
"folders": [
{
"folders": [
{
"name": "📦 rsxml",
"path": "python/packages/rsxml"
},
{
"path": "python/packages/rsxml"
},
{
"name": "🏠 Home",
"path": "."
}
],
"settings": {
"path": "."
}
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"[python]": {
"editor.tabSize": 4,
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true
},
// "python.analysis.typeCheckingMode": "basic",
"python.linting.ignorePatterns": [
"**/site-packages/**/*.py",
".vscode/*.py"
],
"python.linting.pylintArgs": [
"--extension-pkg-whitelist=sqlite3,math,lxml",
"--ignore=E501",
"--max-line-length=240"
],
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.pycodestyleEnabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pycodestyleArgs": [
"--ignore=E501",
"--max-line-length=240"
],
"python.formatting.autopep8Args": [
"pylint.args": [
"--extension-pkg-whitelist=pygeoprocessing",
"--ignore=E501",
"--max-line-length=240"
],
"python.terminal.activateEnvInCurrentTerminal": true,
"python.terminal.activateEnvironment": true,
"python.testing.pytestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"files.exclude": {
"**/*.egg-info": true,
"**/.pytest_cache/**": true,
"**/python/**": true,
"**/.venv/**": true
},
"files.watcherExclude": {
"**/*.egg-info/**": true,
"**/.pytest_cache/**": true,
"**/dist/**": true,
"**/build/**": true,
"**/python/**": true,
"**/.venv/**": true
"**/docs/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
},
"search.exclude": {
"**/*.egg-info": true,
"**/.pytest_cache/**": true,
"**/python/**": true,
"**/.venv/**": true
"**/*.egg-info/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
},
}
"files.exclude": {
"**/*.egg-info/**": true,
"**/*.pytest_cache/**": true,
"**/.venv/**": true,
"**/__pycache__/**": true
}
},
// Suggested extensions that will be installed for everyone
"extensions": {
"recommendations": [
"mhutchie.git-graph",
"ms-python.autopep8",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"njpwerner.autodocstring",
"redhat.vscode-xml",
"unifiedjs.vscode-mdx",
"yzhang.markdown-all-in-one",
"GitHub.copilot-chat",
"GitHub.copilot"
]
}
}
Loading

0 comments on commit 933b483

Please sign in to comment.