Skip to content

Commit

Permalink
Adding devcontainer tools for easier development on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-harter committed Mar 14, 2024
1 parent 580d6c0 commit d6bbe44
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# OS
FROM mcr.microsoft.com/devcontainers/python:3.11

# This installs a graphical interface so we can plot the data if needed
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get install -y libgtk-3-dev
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "imap_processing",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {
"version": "latest"
}
},
"forwardPorts": [6080],
//Pip install the requriements, and then install the pre-commit hooks
"postCreateCommand": "pip install -e .[tests,dev] && pre-commit install",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python"
}
}
}
}
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ docs =
sphinx-automodapi
sphinx-copybutton
sphinx_rtd_theme
dev =
ipython
pre-commit

[tool:pytest]
minversion = 3.9
Expand Down

0 comments on commit d6bbe44

Please sign in to comment.