File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 22 "name" : " RSXML Python" ,
33 "image" : " mcr.microsoft.com/devcontainers/python:3.12" ,
44 "features" : {
5+ "ghcr.io/devcontainers/features/node" : {
6+ "version" : 22
7+ },
58 "ghcr.io/devcontainers/features/common-utils:2" : {
69 "installZsh" : " true" ,
710 "configureZshAsDefaultShell" : " true" ,
1922 ]
2023 }
2124 },
22- "postCreateCommand" : " pip install uv && uv pip install --system -e .[dev] "
25+ "postCreateCommand" : " bash .devcontainer/post-create.sh "
2326}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+ export DEBIAN_FRONTEND=noninteractive
4+ export CI=true
5+
6+ # Install wget
7+ sudo apt-get update
8+ sudo apt-get install -y wget
9+
10+ # Install Yarn
11+ npm install -g yarn
12+ corepack enable
13+
14+ # Configure Yarn and Zsh in user home
15+ (
16+ cd ~
17+ yarn set version berry
18+ mkdir -p ~ /.oh-my-zsh/custom/themes
19+ wget https://raw.githubusercontent.com/Riverscapes/environment/master/nar-ys.zsh-theme -O ~ /.oh-my-zsh/custom/themes/nar-ys.zsh-theme
20+ wget https://raw.githubusercontent.com/Riverscapes/environment/master/.aliases -O ~ /.aliases
21+ wget https://raw.githubusercontent.com/Riverscapes/environment/master/.zshrc -O ~ /.zshrc
22+ )
23+
24+ # Install Python dependencies
25+ sudo pip install uv
26+ sudo uv pip install --system -e .[dev]
Original file line number Diff line number Diff line change 1+ # .pre-commit-config.yaml
2+ #
3+ # This file configures pre-commit hooks for the project.
4+ # Pre-commit hooks are scripts that run automatically before each commit
5+ # to ensure code quality and consistency.
6+ #
7+ # To use these hooks:
8+ # 1. Install pre-commit: pip install pre-commit
9+ # 2. Install the git hooks: pre-commit install
10+ # 3. (Optional) Run against all files: pre-commit run --all-files
11+ #
12+ # For more information, see https://pre-commit.com/
13+
114repos :
215 - repo : https://github.com/pre-commit/pre-commit-hooks
316 rev : v4.5.0
You can’t perform that action at this time.
0 commit comments