Skip to content

Commit 4ef3e5c

Browse files
committed
copier
1 parent 5c68b7d commit 4ef3e5c

File tree

29 files changed

+252
-124
lines changed

29 files changed

+252
-124
lines changed

.coderabbit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
early_access: true
23
reviews:
34
profile: assertive
45
path_instructions:
56
- path: "**/vendor_files/**"
67
instructions: "These files came from a vendor and we're not allowed to change them. Refer to it if you need to understand how the main code interacts with it, but do not make comments about it."
8+
- path: "**/*.py"
9+
instructions: "Do not express concerns about assert statements being removed by using the -O python flag; we never use that flag. Do not express concerns about ruff rules; a pre-commit hook already runs a ruff check. Do not warn about unnecessary super().init() calls; pyright prefers those to be present."
710
tools:
811
eslint: # when the code contains typescript, eslint will be run by pre-commit, and coderabbit often generates false positives
912
enabled: false
@@ -14,6 +17,7 @@ reviews:
1417
flake8: # we use ruff instead (when we use Python)
1518
enabled: false
1619
poem: false
20+
in_progress_fortune: false
1721
# the commit status is driven by our repository config and required checks, we don't want CodeRabbit messing with it
1822
commit_status: false
1923
auto_review:

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.90
2+
_commit: v0.0.94
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
install_claude_cli: false

.devcontainer/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# base image tags available at https://mcr.microsoft.com/v2/devcontainers/universal/tags/list
22
# added the platform flag to override any local settings since this image is only compatible with linux/amd64. since this image is only x64 compatible, suppressing the hadolint rule
33
# hadolint ignore=DL3029
4-
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/universal:2.13.1-focal
4+
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/universal:5.1.1-noble
55

66
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
77

8+
# temporary hack until yarn updates its GPG key
9+
RUN rm /etc/apt/sources.list.d/yarn.list || true
10+
811
RUN apt-get update -y && apt-get install -y \
9-
"bash-completion=$(apt-cache madison bash-completion | awk '{print $3}' | grep '^1:2.10' | head -n 1)" --no-install-recommends \
12+
"bash-completion=$(apt-cache madison bash-completion | awk '{print $3}' | grep '^1:2.11' | head -n 1)" --no-install-recommends \
1013
&& apt-get clean \
1114
&& rm -rf /var/lib/apt/lists/*
1215

1316
# Create the venv folder and set permissions for anyone to modify---this is necessary to be able to break out the venv folder as a separate docker volume for better performance on Windows hosts
1417
ARG REPO_NAME=copier-base-template
1518
ENV VENV_PATH=/workspaces/${REPO_NAME}/.venv
16-
RUN mkdir -p /workspace && \
19+
RUN mkdir -p /workspaces && \
1720
mkdir -p ${VENV_PATH} && \
1821
chmod -R 777 /workspaces ${VENV_PATH} && \
1922
chgrp -R 0 /workspaces ${VENV_PATH}

.devcontainer/devcontainer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
"extensions": [
1717
// basic tooling
1818
// "eamodio.gitlens@15.5.1",
19-
"coderabbit.coderabbit-vscode@0.16.1",
19+
"coderabbit.coderabbit-vscode@0.16.6",
2020
"ms-vscode.live-server@0.5.2025051301",
2121
"MS-vsliveshare.vsliveshare@1.0.5905",
2222
"github.copilot@1.388.0",
23-
"github.copilot-chat@0.34.2025112401",
23+
"github.copilot-chat@0.36.2026010502",
2424

2525
// Python
26-
"ms-python.python@2025.17.2025100201",
27-
"ms-python.vscode-pylance@2025.8.3",
26+
"ms-python.python@2025.21.2026010501",
27+
"ms-python.vscode-pylance@2025.10.100",
2828
"ms-vscode-remote.remote-containers@0.414.0",
29-
"charliermarsh.ruff@2025.28.0",
29+
"charliermarsh.ruff@2025.32.0",
3030

3131
// Misc file formats
32-
"bierner.markdown-mermaid@1.28.0",
32+
"bierner.markdown-mermaid@1.29.0",
3333
"samuelcolvin.jinjahtml@0.20.0",
3434
"tamasfe.even-better-toml@0.19.2",
3535
"emilast.LogFileHighlighter@3.3.3",
36-
"esbenp.prettier-vscode@11.0.0"
36+
"esbenp.prettier-vscode@11.0.2"
3737
],
3838
"settings": {
3939
"editor.accessibilitySupport": "off", // turn off sounds
@@ -58,5 +58,5 @@
5858
"initializeCommand": "sh .devcontainer/initialize-command.sh",
5959
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
6060
"postStartCommand": "sh .devcontainer/post-start-command.sh"
61-
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 99b3f7c4 # spellchecker:disable-line
61+
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 69bb472f # spellchecker:disable-line
6262
}

.devcontainer/install-ci-tooling.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import tempfile
88
from pathlib import Path
99

10-
UV_VERSION = "0.9.17"
11-
PNPM_VERSION = "10.25.0"
12-
COPIER_VERSION = "9.11.0"
13-
COPIER_TEMPLATE_EXTENSIONS_VERSION = "0.3.3"
14-
PRE_COMMIT_VERSION = "4.5.0"
10+
UV_VERSION = "0.9.26"
11+
PNPM_VERSION = "10.28.1"
12+
COPIER_VERSION = "==9.11.2"
13+
COPIER_TEMPLATE_EXTENSIONS_VERSION = "==0.3.3"
14+
PRE_COMMIT_VERSION = "4.5.1"
1515
GITHUB_WINDOWS_RUNNER_BIN_PATH = r"C:\Users\runneradmin\.local\bin"
1616
INSTALL_SSM_PLUGIN_BY_DEFAULT = False
1717
parser = argparse.ArgumentParser(description="Install CI tooling for the repo")
@@ -76,9 +76,9 @@ def main():
7676
uv_path,
7777
"tool",
7878
"install",
79-
f"copier=={COPIER_VERSION}",
79+
f"copier{COPIER_VERSION}",
8080
"--with",
81-
f"copier-template-extensions=={COPIER_TEMPLATE_EXTENSIONS_VERSION}",
81+
f"copier-template-extensions{COPIER_TEMPLATE_EXTENSIONS_VERSION}",
8282
],
8383
check=True,
8484
env=uv_env,

.github/actions/install_deps/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ runs:
5858

5959
- name: Setup python
6060
if: ${{ inputs.python-version != 'notUsing' }}
61-
uses: actions/setup-python@v6.1.0
61+
uses: actions/setup-python@v6.2.0
6262
with:
6363
python-version: ${{ env.PYTHON_VERSION }}
6464

6565
- name: Setup node
6666
if: ${{ inputs.node-version != 'notUsing' }}
67-
uses: actions/setup-node@v6.1.0
67+
uses: actions/setup-node@v6.2.0
6868
with:
6969
node-version: ${{ inputs.node-version }}
7070

.github/actions/update-devcontainer-hash/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ inputs:
55
description: 'Branch to checkout and update'
66
required: true
77

8-
permissions:
9-
contents: write
10-
118
outputs:
129
new-sha:
1310
description: 'The SHA of the branch tip after update'

.github/reusable_workflows/build-docker-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156

157157
- name: Upload Docker Image Artifact
158158
if: ${{ inputs.save-as-artifact }}
159-
uses: actions/upload-artifact@v5.0.0
159+
uses: actions/upload-artifact@v6.0.0
160160
with:
161161
name: ${{ steps.calculate-build-context-hash.outputs.image_name_no_slashes }}
162162
path: ${{ steps.calculate-build-context-hash.outputs.image_name_no_slashes }}.tar

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
timeout-minutes: 8 # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
114114

115115
- name: Cache Pre-commit hooks
116-
uses: actions/cache@v4.3.0
116+
uses: actions/cache@v5.0.2
117117
env:
118118
cache-name: cache-pre-commit-hooks
119119
with:

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
timeout-minutes: 8 # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
6060

6161
- name: Cache Pre-commit hooks
62-
uses: actions/cache@v4.3.0
62+
uses: actions/cache@v5.0.2
6363
env:
6464
cache-name: cache-pre-commit-hooks
6565
with:

0 commit comments

Comments
 (0)