Skip to content

Commit 49e699b

Browse files
chore(copier): update from template
1 parent e8a6b97 commit 49e699b

File tree

5 files changed

+30
-14
lines changed

5 files changed

+30
-14
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: 101595d
4+
_commit: 215a2c2
55
_src_path: gh:liblaf/copier-python
66
answers_file_shared: .config/copier/.copier-answers.shared.yaml
77
namespace: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is @generated by <https://github.com/liblaf/copier-release>.
22
# DO NOT EDIT!
33
# prettier-ignore
4-
_commit: 3f9be0a
4+
_commit: 98e302a
55
_src_path: gh:liblaf/copier-release
66
release_type: python

.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: aa79640
4+
_commit: ef07748
55
_src_path: gh:liblaf/copier-shared
66
author_email: 30631553+liblaf@users.noreply.github.com
77
author_name: liblaf

.config/copier/mise/tasks/lint-toml.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ function has() {
1010
}
1111

1212
function pretty-toml() {
13+
local files=()
14+
for file in "$@"; do
15+
if [[ -f $file ]]; then
16+
files+=("$file")
17+
fi
18+
done
1319
if has toml-sort; then
14-
toml-sort --in-place --all "$@"
15-
sed --expression='s/# :schema /#:schema /g' --in-place "$@"
20+
toml-sort --in-place --all "${files[@]}"
21+
sed --expression='s/# :schema /#:schema /g' --in-place "${files[@]}"
1622
fi
1723
if has tombi; then
18-
tombi format "$@"
24+
tombi format "${files[@]}"
1925
fi
2026
}
2127

22-
pretty-toml .ruff.toml pyproject.toml
28+
pretty-toml '.ruff.toml' 'pyproject.toml'
2329

2430
if has tombi; then
2531
tombi lint

.pre-commit-config.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ ci:
1111
for more information, see https://pre-commit.ci
1212
autoupdate_commit_msg: |-
1313
chore(pre-commit.ci): pre-commit autoupdate
14+
skip:
15+
- dvc-post-checkout
16+
- dvc-pre-commit
17+
- dvc-pre-push
1418

1519
repos:
1620
- repo: https://github.com/astral-sh/ruff-pre-commit
@@ -24,22 +28,26 @@ repos:
2428
rev: v2.2.0
2529
hooks:
2630
- id: biome-check
27-
exclude_types:
28-
- json
29-
- json5
31+
exclude: \.jsonc?$
3032
- repo: https://github.com/iterative/dvc
3133
rev: 3.62.0
3234
hooks:
35+
- id: dvc-post-checkout
36+
always_run: true
37+
stages:
38+
- post-checkout
39+
additional_dependencies:
40+
- .[all]
3341
- id: dvc-pre-commit
3442
stages:
3543
- pre-commit
44+
additional_dependencies:
45+
- .[all]
3646
- id: dvc-pre-push
3747
stages:
3848
- pre-push
39-
- id: dvc-post-checkout
40-
always_run: true
41-
stages:
42-
- post-checkout
49+
additional_dependencies:
50+
- .[all]
4351
- repo: https://github.com/pre-commit/pre-commit-hooks
4452
rev: v6.0.0
4553
hooks:
@@ -58,6 +66,8 @@ repos:
5866
rev: v0.11.0.1
5967
hooks:
6068
- id: shellcheck
69+
args:
70+
- --exclude=SC1091
6171

6272
default_install_hook_types:
6373
- post-checkout

0 commit comments

Comments
 (0)