Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cds-snc/notification-document-download-api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 384fea75a5a6b17d2ea2fc0cbfd3cd75c7c98a1b
Choose a base ref
..
head repository: cds-snc/notification-document-download-api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 075389c93307ab3be5dcde8f56a5cd4225ae9aed
Choose a head ref
Showing with 26 additions and 14 deletions.
  1. +1 −0 .devcontainer/Dockerfile
  2. +2 −1 .devcontainer/devcontainer.json
  3. +11 −1 .devcontainer/scripts/notify-dev-entrypoint.sh
  4. +12 −12 poetry.lock
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:1-3.12

ENV POETRY_VERSION="1.7.1"
ENV POETRY_VENV_PATH="/home/vscode/.venv/workspace"

RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,8 @@
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"python.pythonPath": "/usr/local/bin/python"
"python.defaultInterpreterPath": "/home/vscode/.venv/workspace/bin/python",
"python.venvPath": "/home/vscode/.venv"
},
"extensions": [
"charliermarsh.ruff",
12 changes: 11 additions & 1 deletion .devcontainer/scripts/notify-dev-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -25,14 +25,24 @@ echo -e "source /usr/share/doc/fzf/examples/completion.zsh" >> ~/.zshrc
echo -e "fpath+=/.zfunc" >> ~/.zshrc
echo -e "autoload -Uz compinit && compinit"

pip install poetry==${POETRY_VERSION} poetry-plugin-sort \
pip install poetry=="${POETRY_VERSION}" poetry-plugin-sort \
&& poetry --version

# Disable poetry auto-venv creation
poetry config virtualenvs.create false

# Initialize poetry autocompletions
mkdir ~/.zfunc
touch ~/.zfunc/_poetry
poetry completions zsh > ~/.zfunc/_poetry

# Manually create and activate a virtual environment with a static path
python -m venv "${POETRY_VENV_PATH}"
source "${POETRY_VENV_PATH}/bin/activate"

# Ensure newly created shells activate the poetry venv
echo "source ${POETRY_VENV_PATH}/bin/activate" >> ~/.zshrc

# Set up git blame to ignore certain revisions e.g. sweeping code formatting changes.
git config blame.ignoreRevsFile .git-blame-ignore-revs

24 changes: 12 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.