Skip to content
Open
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
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Start from the base image
FROM mcr.microsoft.com/devcontainers/python

# Install packages
RUN pipx install ruff

# Copy the project's source code
COPY . /workspace

# Set the working directory
WORKDIR /workspace

# Install the project's dependencies
RUN pip install -e ".[other,notebook,testing,dev]"

# Install pre-commit hooks
RUN pre-commit install
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Adaptive",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": "true",
"username": "vscode"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter",
"charliermarsh.ruff",
"oderwat.indent-rainbow"
]
}
}
}
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge

dependencies:
- python=3.9
- python=3.11
- sortedcontainers
- sortedcollections
- scipy
Expand All @@ -17,5 +17,5 @@ dependencies:
- jupyter_client>=5.2.2
- ipywidgets
- scikit-optimize>=0.8.1
- scikit-learn<=0.24.2 # https://github.com/scikit-optimize/scikit-optimize/issues/1059
- scikit-learn
- plotly
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ testing = [
"pre_commit",
"typeguard",
]
dev = [
"ruff",
"pre-commit",
]

[project.urls]
homepage = "https://adaptive.readthedocs.io/"
Expand Down