Skip to content

Commit 45b69ce

Browse files
chore: Update copier template to v0.5.1
1 parent 1527718 commit 45b69ce

11 files changed

Lines changed: 211 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is managed by Copier; DO NOT EDIT OR REMOVE.
2-
_commit: v0.4.1
2+
_commit: v0.5.1
33
_src_path: https://github.com/quantco/copier-template-python-open-source
44
add_autobump_workflow: false
55
author_email: oliver.borchert@quantco.com

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ updates:
1010
- "*"
1111
commit-message:
1212
prefix: ci
13+
cooldown:
14+
default-days: 7

.github/workflows/build.yml

Lines changed: 36 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@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
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@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
2958
with:
@@ -68,7 +97,7 @@ jobs:
6897
manylinux: auto
6998
sccache: true
7099
- name: Check package
71-
run: pixi run -e build check-wheel
100+
run: pixi run check-wheel
72101
- name: Upload package
73102
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
74103
with:
@@ -84,7 +113,13 @@ jobs:
84113
id-token: write
85114
environment: pypi
86115
steps:
116+
<<<<<<< before updating
87117
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
118+
||||||| last update
119+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
120+
=======
121+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
122+
>>>>>>> after updating
88123
with:
89124
path: dist
90125
merge-multiple: true

.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@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
2842
with:
2943
environments: default lint polars-minimal
@@ -33,6 +47,19 @@ jobs:
3347
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
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@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
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@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
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@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
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@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
79+
||||||| last update
80+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
81+
=======
82+
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
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 --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 .

.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)