Skip to content

Commit

Permalink
Align with Copier template v13
Browse files Browse the repository at this point in the history
  • Loading branch information
trallnag committed Jan 24, 2025
1 parent 04424d1 commit 9ba0c9b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_commit: v11
_commit: v13
_src_path: [email protected]:trallnag/copier-template-python-script.git
project_name: filter-pre-commit-hooks
repo_name: filter-pre-commit-hooks
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "filter-pre-commit-hooks",

"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"workspaceFolder": "/workspaces/filter-pre-commit-hooks",

"dockerComposeFile": "docker-compose.yaml",

Expand All @@ -21,6 +21,7 @@
},

"postCreateCommand": {
"fixVolumeVenv": "sudo chown -R vscode:vscode /workspaces/filter-pre-commit-hooks/.venv",
"fixVolumePreCommitCache": "sudo chown -R vscode:vscode /home/vscode/.cache/pre-commit",
"fixVolumeUvCache": "sudo chown -R vscode:vscode /home/vscode/.cache/uv"
},
Expand Down
11 changes: 10 additions & 1 deletion .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ services:
build:
context: .
dockerfile: Dockerfile
environment:
# Hardlinking (which is the default on Linux) not possible
# as uv cache lives on a different drive in this configuration.
UV_LINK_MODE: symlink
volumes:
- ../..:/workspaces:cached
- ..:/workspaces/filter-pre-commit-hooks:cached
# Dedicated volume for the virtual environment.
- venv:/workspaces/filter-pre-commit-hooks/.venv
# Cache volume for pre-commit.
- pre-commit-cache:/home/vscode/.cache/pre-commit
# Cache volume for uv.
- uv-cache:/home/vscode/.cache/uv
command: sleep infinity
volumes:
venv:
pre-commit-cache:
uv-cache:

0 comments on commit 9ba0c9b

Please sign in to comment.