Skip to content

Commit f8b670d

Browse files
chore: Update copier template to v0.5.3
1 parent b70d2b3 commit f8b670d

11 files changed

Lines changed: 259 additions & 96 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.3
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: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,40 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Set up pixi
19+
<<<<<<< before updating
1920
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
2021
with:
2122
environments: build
23+
||||||| last update
24+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
25+
with:
26+
environments: build
27+
=======
28+
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
29+
- name: Derive version
30+
id: version
31+
if: startsWith(github.ref, 'refs/tags/')
32+
shell: bash
33+
run: echo "version=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> $GITHUB_OUTPUT
34+
- name: Replace version
35+
if: startsWith(github.ref, 'refs/tags/')
36+
run: |
37+
sed -i -e "s/0.0.0/${STEPS_VERSION_OUTPUTS_VERSION}/g" pyproject.toml
38+
env:
39+
STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }}
40+
>>>>>>> after updating
2241
- name: Build project
23-
run: pixi run -e build build-wheel
42+
run: pixi run build-wheel
2443
- name: Check package
25-
run: pixi run -e build check-wheel
44+
run: pixi run check-wheel
2645
- name: Upload package
46+
<<<<<<< before updating
2747
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
48+
||||||| last update
49+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
50+
=======
51+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
52+
>>>>>>> after updating
2853
with:
2954
name: artifact
3055
path: dist/*
@@ -38,9 +63,21 @@ jobs:
3863
id-token: write
3964
environment: pypi
4065
steps:
66+
<<<<<<< before updating
4167
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
68+
||||||| last update
69+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
70+
=======
71+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
72+
>>>>>>> after updating
4273
with:
4374
name: artifact
4475
path: dist
4576
- name: Publish package on PyPi
77+
<<<<<<< before updating
4678
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
79+
||||||| last update
80+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
81+
=======
82+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
83+
>>>>>>> after updating

.github/workflows/ci.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,33 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
pre-commit:
16+
lint:
17+
name: Lint
1718
timeout-minutes: 30
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Checkout branch
2122
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2223
- name: Set up pixi
24+
<<<<<<< before updating
2325
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
2426
with:
2527
environments: default lint
2628
- name: pre-commit
2729
run: pixi run pre-commit-run --color=always --show-diff-on-failure
30+
||||||| last update
31+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
32+
with:
33+
environments: default lint
34+
- name: pre-commit
35+
run: pixi run pre-commit-run --color=always --show-diff-on-failure
36+
=======
37+
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
38+
- name: Run linting
39+
run: pixi run lint
40+
env:
41+
CLICOLOR_FORCE: 1
42+
>>>>>>> after updating
2843

2944
pytest:
3045
timeout-minutes: 30
@@ -40,6 +55,7 @@ jobs:
4055
strategy:
4156
fail-fast: false
4257
matrix:
58+
<<<<<<< before updating
4359
environment: [py311, py312, py313]
4460
database: [sqlite, mssql, duckdb]
4561
include:
@@ -49,6 +65,26 @@ jobs:
4965
connection-string: mssql+pyodbc://sa:Passw0rd@localhost:1433/master?driver=ODBC+Driver+18+for+SQL+Server&Encrypt=no
5066
- database: duckdb
5167
connection-string: duckdb:///test.duckdb
68+
||||||| last update
69+
environment:
70+
- py311
71+
- py312
72+
- py313
73+
os:
74+
- ubuntu-latest
75+
- macos-latest
76+
- windows-latest
77+
=======
78+
environment:
79+
- py311
80+
- py312
81+
- py313
82+
- py314
83+
os:
84+
- ubuntu-latest
85+
- macos-latest
86+
- windows-latest
87+
>>>>>>> after updating
5288
steps:
5389
- name: Checkout branch
5490
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -58,12 +94,24 @@ jobs:
5894
if: matrix.database == 'mssql'
5995
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
6096
- name: Set up pixi
97+
<<<<<<< before updating
6198
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
99+
||||||| last update
100+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
101+
=======
102+
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
103+
>>>>>>> after updating
62104
with:
63105
environments: ${{ matrix.environment }}
106+
<<<<<<< before updating
64107
activate-environment: true
65108
- name: Install repository
66109
run: pixi run postinstall
110+
||||||| last update
111+
- name: Install repository
112+
run: pixi run -e ${{ matrix.environment }} postinstall
113+
=======
114+
>>>>>>> after updating
67115
- name: Run pytest
68116
run: pixi run test-coverage --color=yes
69117
env:

.github/workflows/scorecard.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ jobs:
6565
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6666
# format to the repository Actions tab.
6767
- name: "Upload artifact"
68+
<<<<<<< before updating
6869
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
70+
||||||| last update
71+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
72+
=======
73+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
74+
>>>>>>> after updating
6975
with:
7076
name: SARIF file
7177
path: results.sarif
@@ -74,6 +80,12 @@ jobs:
7480
# Upload the results to GitHub's code scanning dashboard (optional).
7581
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7682
- name: "Upload to code-scanning"
83+
<<<<<<< before updating
7784
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
85+
||||||| last update
86+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
87+
=======
88+
uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
89+
>>>>>>> after updating
7890
with:
7991
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 & 80 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.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ git clone https://github.com/quantco/sqlcompyre
5151
cd sqlcompyre
5252

5353
pixi run pre-commit-install
54+
<<<<<<< before updating
5455
pixi run postinstall
56+
||||||| last update
57+
pixi run postinstall
58+
pixi run test
59+
=======
60+
pixi run test
61+
>>>>>>> after updating
5562
```
5663

5764
### Running Tests Locally

0 commit comments

Comments
 (0)