Skip to content

Commit fcee371

Browse files
chore: Update copier template to v0.5.2
1 parent cdb1ac9 commit fcee371

10 files changed

Lines changed: 212 additions & 121 deletions

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../AGENTS.md

.copier-answers.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# This file is managed by Copier; DO NOT EDIT OR REMOVE.
2-
_commit: v0.4.1
2+
#
3+
# If you want to change any of the copier answers, run one of the following:
4+
# 1. If you want to answer _all_ questions again:
5+
# `copier update --trust --vcs-ref=:current: .`
6+
# 2. If you want to answer a _specific_ question again:
7+
# `copier update --trust --defaults --vcs-ref=:current: --data answer_name=answer_value .`
8+
#
9+
# If you want to run this as a one-off command, prefix with:
10+
# `pixi exec --spec copier --spec ruamel.yaml -- {command}`
11+
_commit: v0.5.2
312
_src_path: https://github.com/quantco/copier-template-python-open-source
413
add_autobump_workflow: false
514
author_email: oliver.borchert@quantco.com

.github/workflows/build.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,42 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919
- name: Set up pixi
20+
<<<<<<< before updating
2021
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
2122
with:
2223
environments: build
2324
- name: Set version
2425
run: pixi run -e build set-version
26+
||||||| last update
27+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
28+
with:
29+
environments: build
30+
=======
31+
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
32+
- name: Derive version
33+
id: version
34+
if: startsWith(github.ref, 'refs/tags/')
35+
shell: bash
36+
run: echo "version=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> $GITHUB_OUTPUT
37+
- name: Replace version
38+
if: startsWith(github.ref, 'refs/tags/')
39+
run: |
40+
sed -i -e "s/0.0.0/${STEPS_VERSION_OUTPUTS_VERSION}/g" pyproject.toml
41+
env:
42+
STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }}
43+
>>>>>>> after updating
2544
- name: Build project
45+
<<<<<<< before updating
2646
run: pixi run -e build build-sdist
47+
||||||| last update
48+
run: pixi run -e build build-wheel
49+
- name: Check package
50+
run: pixi run check-wheel
51+
=======
52+
run: pixi run build-wheel
53+
- name: Check package
54+
run: pixi run check-wheel
55+
>>>>>>> after updating
2756
- name: Upload package
2857
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2958
with:
@@ -88,7 +117,7 @@ jobs:
88117
before-script-linux: |
89118
${{ case(github.event_name == 'release', 'cargo install cargo-auditable@0.7.4 --locked && printf ''#!/bin/sh\nexec cargo auditable "$@"\n'' > /usr/local/bin/cargo-auditable-wrapper && chmod +x /usr/local/bin/cargo-auditable-wrapper', '') }}
90119
- name: Check package
91-
run: pixi run -e build check-wheel
120+
run: pixi run check-wheel
92121
- name: Upload package
93122
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
94123
with:

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,31 @@ permissions:
1313
contents: read
1414

1515
jobs:
16+
<<<<<<< before updating
1617
pre-commit-checks:
1718
name: Pre-commit Checks
19+
||||||| last update
20+
pre-commit:
21+
=======
22+
lint:
23+
name: Lint
24+
>>>>>>> after updating
1825
timeout-minutes: 30
1926
runs-on: ubuntu-latest
2027
steps:
2128
- name: Checkout branch
29+
<<<<<<< before updating
2230
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2331
with:
2432
# needed for 'pre-commit-mirrors-insert-license'
2533
fetch-depth: 0
34+
||||||| last update
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
=======
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
>>>>>>> after updating
2639
- name: Set up pixi
40+
<<<<<<< before updating
2741
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
2842
with:
2943
environments: default lint polars-minimal
@@ -33,6 +47,19 @@ jobs:
3347
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
3448
- name: pre-commit
3549
run: pixi run pre-commit-run --color=always --show-diff-on-failure
50+
||||||| last update
51+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
52+
with:
53+
environments: default lint
54+
- name: pre-commit
55+
run: pixi run pre-commit-run --color=always --show-diff-on-failure
56+
=======
57+
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
58+
- name: Run linting
59+
run: pixi run lint
60+
env:
61+
CLICOLOR_FORCE: 1
62+
>>>>>>> after updating
3663

3764
unit-tests:
3865
name: Unit Tests (${{ contains(matrix.os, 'ubuntu') && 'Linux' || (contains(matrix.os, 'windows') && 'Windows' || 'macOS') }}) - ${{ matrix.environment }}
@@ -41,6 +68,7 @@ jobs:
4168
strategy:
4269
fail-fast: true
4370
matrix:
71+
<<<<<<< before updating
4472
os: [ubuntu-latest, windows-latest, macos-latest]
4573
environment: [py310, py311, py312, py313, py314]
4674
with_optionals: [false]
@@ -59,13 +87,46 @@ jobs:
5987
- os: ubuntu-latest
6088
environment: polars-minimal
6189
with_optionals: false
90+
||||||| last update
91+
environment:
92+
- py310
93+
- py311
94+
- py312
95+
- py313
96+
os:
97+
- ubuntu-latest
98+
- macos-latest
99+
- windows-latest
100+
=======
101+
environment:
102+
- py310
103+
- py311
104+
- py312
105+
- py313
106+
- py314
107+
os:
108+
- ubuntu-latest
109+
- macos-latest
110+
- windows-latest
111+
>>>>>>> after updating
62112
steps:
63113
- name: Checkout branch
114+
<<<<<<< before updating
115+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116+
||||||| last update
117+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
118+
with:
119+
fetch-depth: 0
120+
=======
64121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
122+
with:
123+
fetch-depth: 0
124+
>>>>>>> after updating
65125
- name: Set up pixi
66126
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
67127
with:
68128
environments: ${{ matrix.environment }}
129+
<<<<<<< before updating
69130
# FIXME: Remove when `s3_server` fixture does not start a process anymore
70131
post-cleanup: ${{ matrix.os != 'windows-latest' }}
71132
- name: Install Rust
@@ -74,6 +135,11 @@ jobs:
74135
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
75136
- name: Install repository
76137
run: pixi run -e ${{ matrix.environment }} postinstall
138+
||||||| last update
139+
- name: Install repository
140+
run: pixi run -e ${{ matrix.environment }} postinstall
141+
=======
142+
>>>>>>> after updating
77143
- name: Run pytest
78144
run: pixi run -e ${{ matrix.environment }} test-coverage --color=yes ${{ matrix.with_optionals && '-m with_optionals' || '-m "not with_optionals"'}} --cov=dataframely --cov-report=xml
79145
- name: Upload codecov

.github/workflows/scorecard.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jobs:
7474
# Upload the results to GitHub's code scanning dashboard (optional).
7575
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7676
- name: "Upload to code-scanning"
77+
<<<<<<< before updating
7778
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
79+
||||||| last update
80+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
81+
=======
82+
uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
83+
>>>>>>> after updating
7884
with:
7985
sarif_file: results.sarif

.lefthook.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/schema.json
2+
output: [summary]
3+
templates:
4+
run: run --as-is --quiet --no-progress
5+
no_auto_install: true
6+
pre-commit:
7+
fail_on_changes: always
8+
exclude:
9+
- assets/**/*
10+
jobs:
11+
- name: pixi-install
12+
run: pixi install
13+
- group:
14+
parallel: true
15+
jobs:
16+
- name: ruff-check
17+
glob: "*.{py,pyi}"
18+
run: pixi {run} ruff check --fix --exit-non-zero-on-fix --force-exclude
19+
- name: ruff-format
20+
glob: "*.{py,pyi}"
21+
run: pixi {run} ruff format --force-exclude
22+
- name: mypy
23+
glob: "*.py"
24+
run: pixi {run} mypy {staged_files}
25+
- name: prettier
26+
glob: "*.{md,yml,yaml}"
27+
run: pixi {run} prettier --write --no-error-on-unmatched-pattern --list-different --ignore-unknown {staged_files}
28+
- name: taplo
29+
glob: "*.toml"
30+
run: pixi {run} taplo format {staged_files}
31+
- name: trailing-whitespace-fixer
32+
glob: "*"
33+
file_types: text
34+
run: pixi {run} trailing-whitespace-fixer {staged_files}
35+
- name: end-of-file-fixer
36+
glob: "*"
37+
file_types: text
38+
run: pixi {run} end-of-file-fixer {staged_files}
39+
- name: check-merge-conflict
40+
glob: "*"
41+
file_types: text
42+
run: pixi {run} check-merge-conflict --assume-in-merge {staged_files}
43+
- name: typos
44+
glob: "*"
45+
file_types: text
46+
run: pixi {run} typos --force-exclude {staged_files}
47+
- name: zizmor
48+
glob: "*.{yml,yaml}"
49+
run: pixi {run} zizmor --no-progress --min-severity high --fix --offline .

.pre-commit-config.yaml

Lines changed: 0 additions & 110 deletions
This file was deleted.

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Lockfiles must be consistent with package metadata. After any change to `pixi.toml`, run `pixi lock`.
2+
3+
Everything runs in a pixi environment. Any command (like `pytest`) must be prefixed with `pixi run` (e.g. `pixi run pytest`).
4+
5+
Code formatting must align with our standards. Run `pixi run lint` before `git commit`s to ensure this.

0 commit comments

Comments
 (0)