Skip to content

Commit 38e21c7

Browse files
chore(copier): update from template
1 parent a5a3590 commit 38e21c7

File tree

8 files changed

+33
-36
lines changed

8 files changed

+33
-36
lines changed

.config/copier/.copier-answers.python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is @generated by <https://github.com/liblaf/copier-python>.
22
# DO NOT EDIT!
33
# prettier-ignore
4-
_commit: 1ddb1a6
4+
_commit: '1558914'
55
_src_path: gh:liblaf/copier-python
66
answers_file_shared: .config/copier/.copier-answers.shared.yaml
77
namespace: ''

.config/copier/.copier-answers.shared.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is @generated by <https://github.com/liblaf/copier-shared>.
22
# DO NOT EDIT!
33
# prettier-ignore
4-
_commit: dd7d24f
4+
_commit: caef9d4
55
_src_path: gh:liblaf/copier-shared
66
author_email: [email protected]
77
author_name: liblaf

.config/copier/mise/tasks/gen-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function has() {
1010
}
1111

1212
TEMPLATE="\
13-
# tangerine-start: lazy-loader.py.jinja
13+
# tangerine-start: lazy-loader.py
1414
import lazy_loader as lazy
1515
1616
__getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)

.config/copier/mise/tasks/install.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,18 @@ set -o errexit
55
set -o nounset
66
set -o pipefail
77

8-
function replace-mirrors() {
9-
local file="$1"
10-
if [[ -f $file ]]; then
11-
# ref: <https://github.com/astral-sh/uv/issues/6349#issuecomment-3076752818>
12-
sd 'https://(\S+)/packages\b' 'https://files.pythonhosted.org/packages' "$file"
13-
sd 'https://(\S+)/simple\b' 'https://pypi.org/simple' "$file"
14-
fi
8+
function has() {
9+
type "$@" &> /dev/null
1510
}
1611

1712
if [[ -f 'pixi.lock' ]]; then
18-
pixi install
19-
replace-mirrors 'pixi.lock'
13+
pixi='pixi'
14+
if has pixi-wrapper.sh; then pixi='pixi-wrapper.sh'; fi
15+
"$pixi" install
2016
fi
2117

2218
if [[ -f 'uv.lock' ]]; then
23-
uv sync --all-extras --all-groups
24-
replace-mirrors 'uv.lock'
19+
uv='uv'
20+
if has uv-wrapper.sh; then uv='uv-wrapper.sh'; fi
21+
"$uv" sync --all-extras --all-groups
2522
fi

.config/copier/mise/tasks/upgrade.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@ set -o errexit
66
set -o nounset
77
set -o pipefail
88

9-
function replace-mirrors() {
10-
local file="$1"
11-
if [[ -f $file ]]; then
12-
# ref: <https://github.com/astral-sh/uv/issues/6349#issuecomment-3076752818>
13-
sd 'https://(\S+)/packages\b' 'https://files.pythonhosted.org/packages' "$file"
14-
sd 'https://(\S+)/simple\b' 'https://pypi.org/simple' "$file"
15-
fi
9+
function has() {
10+
type "$@" &> /dev/null
1611
}
1712

1813
if [[ -f 'pixi.lock' ]]; then
19-
pixi upgrade
20-
replace-mirrors 'pixi.lock'
14+
pixi='pixi'
15+
if has pixi-wrapper.sh; then pixi='pixi-wrapper.sh'; fi
16+
"$pixi" upgrade
2117
fi
2218

2319
if [[ -f 'uv.lock' ]]; then
24-
uv sync --upgrade
25-
replace-mirrors 'uv.lock'
20+
uv='uv'
21+
if has uv-wrapper.sh; then uv='uv-wrapper.sh'; fi
22+
"$uv" sync --upgrade
2623
fi

.config/copier/mkdocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ plugins:
117117
- https://autoregistry.readthedocs.io/en/stable/objects.inv
118118
- https://beartype.github.io/plum/objects.inv
119119
- https://beartype.readthedocs.io/en/stable/objects.inv
120+
- https://cappa.readthedocs.io/en/stable/objects.inv
120121
- https://cherries.readthedocs.io/en/stable/objects.inv
121122
- https://chex.readthedocs.io/en/stable/objects.inv
122123
- https://cyclopts.readthedocs.io/en/stable/objects.inv
@@ -137,6 +138,7 @@ plugins:
137138
- https://grantjenks.com/docs/sortedcollections/objects.inv
138139
- https://grantjenks.com/docs/sortedcontainers/objects.inv
139140
- https://ipctk.xyz/objects.inv
141+
- https://jaxopt.github.io/stable/objects.inv
140142
- https://jcristharif.com/msgspec/objects.inv
141143
- https://jinja.palletsprojects.com/en/stable/objects.inv
142144
- https://joblib.readthedocs.io/en/stable/objects.inv
@@ -152,6 +154,7 @@ plugins:
152154
- https://pydicom.github.io/pydicom/stable/objects.inv
153155
- https://pymeshfix.pyvista.org/objects.inv
154156
- https://pytorch3d.readthedocs.io/en/latest/objects.inv
157+
- https://questionary.readthedocs.io/en/stable/objects.inv
155158
- https://rich.readthedocs.io/en/stable/objects.inv
156159
- https://toolz.readthedocs.io/en/stable/objects.inv
157160
- https://trimesh.org/objects.inv

.config/direnv/10-python.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,24 @@
44

55
pushd "$(git rev-parse --show-toplevel)" > /dev/null || return 1
66

7-
function replace-mirrors() {
8-
local file="$1"
9-
if [[ -f $file ]]; then
10-
sd 'https://(\S+)/simple\b' 'https://pypi.org/simple' "$file"
11-
sd 'https://(\S+)/packages\b' 'https://files.pythonhosted.org/packages' "$file"
12-
fi
7+
function has() {
8+
type "$@" &> /dev/null
139
}
1410

1511
if [[ -f 'pixi.lock' ]]; then
1612
options=()
1713
if [[ -t 2 ]]; then
1814
options+=(--color=always)
1915
fi
20-
eval "$(pixi shell-hook "${options[@]}")"
21-
replace-mirrors 'pixi.lock'
16+
pixi='pixi'
17+
if has pixi-wrapper.sh; then pixi='pixi-wrapper.sh'; fi
18+
eval "$("$pixi" shell-hook "${options[@]}")"
2219
fi
2320

2421
if [[ -f 'uv.lock' ]]; then
25-
uv sync --all-extras --all-groups
26-
replace-mirrors 'uv.lock'
22+
uv='uv'
23+
if has uv-wrapper.sh; then uv='uv-wrapper.sh'; fi
24+
"$uv" sync --all-extras --all-groups
2725
sed --in-place --regexp-extended \
2826
's|\s*(include-system-site-packages)\s*=\s*.*\s*|\1 = true|' '.venv/pyvenv.cfg'
2927
# shellcheck disable=SC1091

.github/workflows/mega-linter.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ jobs:
9292
sign-commits: true
9393
title: "chore(mega-linter): apply linters automatic fixes"
9494
body-path: ${{ runner.temp }}/megalinter-report.md
95-
labels: automerge
95+
labels: |-
96+
autofix
97+
automerge
9698
assignees: ${{ github.repository_owner }}
9799
reviewers: ${{ github.repository_owner }}
98100
- if: github.ref != 'refs/heads/main' && steps.lint.outputs.has-updated-sources > 0

0 commit comments

Comments
 (0)