File tree Expand file tree Collapse file tree 5 files changed +30
-14
lines changed Expand file tree Collapse file tree 5 files changed +30
-14
lines changed Original file line number Diff line number Diff line change 1
1
# This file is @generated by <https://github.com/liblaf/copier-python>.
2
2
# DO NOT EDIT!
3
3
# prettier-ignore
4
- _commit : 101595d
4
+ _commit : 215a2c2
5
5
_src_path : gh:liblaf/copier-python
6
6
answers_file_shared : .config/copier/.copier-answers.shared.yaml
7
7
namespace : ' '
Original file line number Diff line number Diff line change 1
1
# This file is @generated by <https://github.com/liblaf/copier-release>.
2
2
# DO NOT EDIT!
3
3
# prettier-ignore
4
- _commit : 3f9be0a
4
+ _commit : 98e302a
5
5
_src_path : gh:liblaf/copier-release
6
6
release_type : python
Original file line number Diff line number Diff line change 1
1
# This file is @generated by <https://github.com/liblaf/copier-shared>.
2
2
# DO NOT EDIT!
3
3
# prettier-ignore
4
- _commit : aa79640
4
+ _commit : ef07748
5
5
_src_path : gh:liblaf/copier-shared
6
6
author_email : 30631553+liblaf@users.noreply.github.com
7
7
author_name : liblaf
Original file line number Diff line number Diff line change @@ -10,16 +10,22 @@ function has() {
10
10
}
11
11
12
12
function pretty-toml() {
13
+ local files=()
14
+ for file in " $@ " ; do
15
+ if [[ -f $file ]]; then
16
+ files+=(" $file " )
17
+ fi
18
+ done
13
19
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[@]} "
16
22
fi
17
23
if has tombi; then
18
- tombi format " $@ "
24
+ tombi format " ${files[@]} "
19
25
fi
20
26
}
21
27
22
- pretty-toml .ruff.toml pyproject.toml
28
+ pretty-toml ' .ruff.toml' ' pyproject.toml'
23
29
24
30
if has tombi; then
25
31
tombi lint
Original file line number Diff line number Diff line change 11
11
for more information, see https://pre-commit.ci
12
12
autoupdate_commit_msg : |-
13
13
chore(pre-commit.ci): pre-commit autoupdate
14
+ skip :
15
+ - dvc-post-checkout
16
+ - dvc-pre-commit
17
+ - dvc-pre-push
14
18
15
19
repos :
16
20
- repo : https://github.com/astral-sh/ruff-pre-commit
@@ -24,22 +28,26 @@ repos:
24
28
rev : v2.2.0
25
29
hooks :
26
30
- id : biome-check
27
- exclude_types :
28
- - json
29
- - json5
31
+ exclude : \.jsonc?$
30
32
- repo : https://github.com/iterative/dvc
31
33
rev : 3.62.0
32
34
hooks :
35
+ - id : dvc-post-checkout
36
+ always_run : true
37
+ stages :
38
+ - post-checkout
39
+ additional_dependencies :
40
+ - .[all]
33
41
- id : dvc-pre-commit
34
42
stages :
35
43
- pre-commit
44
+ additional_dependencies :
45
+ - .[all]
36
46
- id : dvc-pre-push
37
47
stages :
38
48
- pre-push
39
- - id : dvc-post-checkout
40
- always_run : true
41
- stages :
42
- - post-checkout
49
+ additional_dependencies :
50
+ - .[all]
43
51
- repo : https://github.com/pre-commit/pre-commit-hooks
44
52
rev : v6.0.0
45
53
hooks :
58
66
rev : v0.11.0.1
59
67
hooks :
60
68
- id : shellcheck
69
+ args :
70
+ - --exclude=SC1091
61
71
62
72
default_install_hook_types :
63
73
- post-checkout
You can’t perform that action at this time.
0 commit comments