Skip to content

Commit 7b17c43

Browse files
committed
Test copier update
2 parents 497fa30 + c9751b1 commit 7b17c43

11 files changed

+50
-16
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Documentation**: <https://switchbox-data.github.io/data-science-project/>
44

5-
This Coper template lets you bootstrap python packages or polyglot data science projects.
5+
This Coper template lets you bootstrap python packages or polyglot data science projects.
66

77
For python packages, it supports:
88
- Modern python tooling: uv, ruff, ty, pytest, tox
@@ -18,7 +18,7 @@ For R data science projects, it supports:
1818
- Tidyverse libaries: ggplot, dplyr, etc.
1919
- Quarto notebooks
2020
- Modern R tooling: pak, air, radian
21-
- Fast install of compiled R packages via pak and P3M
21+
- Fast install of compiled R packages via pak and P3M
2222
- VS Code extensions for R
2323

2424
All project types include:
@@ -58,7 +58,7 @@ After making your selections, copier will:
5858

5959
If you want to skip copier's interactive prompts and generate the project directly, you can pass arguments directly.
6060

61-
For instance, the following prompt generates a python package + data science project:
61+
For instance, the following prompt generates a python package + data science project:
6262

6363
```bash
6464
copier copy --defaults --force \

copier-helper.sh

100644100755
File mode changed.

copier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ r_data_science:
7676
default: "{{ 'r_data_science' in project_features }}"
7777
when: false
7878

79-
# Directory name computed from destination path
79+
# Directory name computed from destination path
8080
project_name:
8181
type: str
8282
default: "{{ _copier_conf.dst_path.name }}"

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ On your local machine, navigate to the directory in which you want to create you
4848
copier copy https://github.com/switchbox-data/switchbox-copier-template <my-project>
4949
```
5050

51-
Where `<my-project>` is the name you want to give your project. This will be used as the directory name, and as the name of your repo if you use GitHub.
51+
Where `<my-project>` is the name you want to give your project. This will be used as the directory name, and as the name of your repo if you use GitHub.
5252

5353
Follow the prompts to configure your project. Once completed, a new directory containing your project will be created. Then navigate into your newly created project directory and follow the instructions in the `README.md` to complete the setup of your project.
5454

5555
## Acknowledgements
5656

57-
This project is inspired by the [cookiecutter-uv](https://fpgmaas.github.io/cookiecutter-uv/) package.
57+
This project is inspired by the [cookiecutter-uv](https://fpgmaas.github.io/cookiecutter-uv/) package.

docs/promp_arguments.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This is a **multiselect** option where you can choose one or more project types:
2828
- Polars, PyArrow, Seaborn, NumPy for data analysis
2929
- Quarto notebooks for reproducible research
3030
- Modern Python tooling (uv, ruff, ty)
31-
32-
31+
32+
3333
- `r_data_science`: Sets up an R data science environment with:
3434
- Tidyverse libraries (ggplot2, dplyr, etc.)
3535
- Quarto notebooks
@@ -41,7 +41,7 @@ This is a **multiselect** option where you can choose one or more project types:
4141
- Testing framework (pytest, tox)
4242
- Documentation (MkDocs with Material theme)
4343
- Publishing workflow (PyPI)
44-
44+
4545
You can select multiple features! Here are some common combinations:
4646

4747
*Python data science project*:
@@ -107,4 +107,3 @@ The template automatically computes several values based on your choices:
107107
- Python package names
108108
- Import statements: `from project_slug import module`
109109
- Directory structures
110-

docs/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This page contains a complete tutorial on how to create your project.
44

55
## Step 1: Install copier
6-
To start, we will need to install `copier`.
6+
To start, we will need to install `copier`.
77

88
We recommend doing so with `uv`. If you don't have `uv`, installation instructions can be found
99
[here](https://docs.astral.sh/uv/#getting-started). For MacOS or Linux;
@@ -87,4 +87,4 @@ Now we commit the changes made by the two steps above to the repository:
8787
git add .
8888
git commit -m 'Fix formatting issues'
8989
git push origin main
90-
```
90+
```

template/.devcontainer/devcontainer.json.jinja

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "{{ project_name }}",
33
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
44
"features": {
5+
"ghcr.io/nils-geistmann/devcontainers-features/zsh:1": {
6+
"plugins": "git colored-man-pages colorize history zsh-autosuggestions zsh-completions zsh-syntax-highlighting"
7+
},
58
"ghcr.io/guiyomh/features/just:0.1.0": { "version": "1.42.4" }{% if python %},
69
"ghcr.io/devcontainers/features/python:1": {
710
"version": "os-provided",
@@ -46,7 +49,7 @@
4649
"nefrob.vscode-just-syntax"{% if python %},
4750
"ms-python.python",
4851
"charliermarsh.ruff",
49-
"astral-sh.ty",{% endif %}{% if r_data_science %},
52+
"astral-sh.ty"{% endif %}{% if r_data_science %},
5053
"REditorSupport.r",
5154
"RDebugger.r-debugger",
5255
"Posit.air-vscode"{% endif %}{% if python_data_science or r_data_science %},

template/.devcontainer/{% if r_data_science %}checkREnvironment.ps1{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if (-not (Test-Path $pkgLockPath)) {
8686
# Install packages from lockfile
8787
if (Test-Path $pkgLockPath) {
8888
Write-Host "📦 Installing packages from pak lockfile..." -ForegroundColor Cyan
89-
89+
9090
try {
9191
Rscript -e "setwd('$projectRoot'); pak::lockfile_install(lockfile = 'pkg.lock')"
9292
if ($LASTEXITCODE -eq 0) {

template/.devcontainer/{% if r_data_science %}checkREnvironment.sh{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fi
6767
# Install packages from lockfile
6868
if [[ -f "$PROJECT_ROOT/pkg.lock" ]]; then
6969
echo "📦 Installing packages from pak lockfile..."
70-
70+
7171
if Rscript -e "setwd('$PROJECT_ROOT'); pak::lockfile_install(lockfile = 'pkg.lock')"; then
7272
echo "✅ Packages installed successfully from pak lockfile"
7373
else

template/{% if python %}pyproject.toml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Documentation = "https://{{ author_github_handle }}.github.io/{{ project_name }}
4141
dev = [
4242
"pytest>=7.2.0",
4343
"ruff>=0.11.5",
44-
"ty>=0.0.1a21",
44+
"ty>=0.0.1a21",
4545
"deptry>=0.20.0",
4646
{%- if python_package %}
4747
"mkdocs>=1.6.0",

0 commit comments

Comments
 (0)