@sablier/devkit 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/just/base.just +20 -0
- package/just/csv.just +9 -1
- package/just/evm.just +12 -0
- package/package.json +1 -1
package/just/base.just
CHANGED
|
@@ -39,6 +39,14 @@ _clean +globs:
|
|
|
39
39
|
@install *args:
|
|
40
40
|
ni {{ args }}
|
|
41
41
|
|
|
42
|
+
# Install mdformat with plugins
|
|
43
|
+
[no-cd]
|
|
44
|
+
@install-mdformat:
|
|
45
|
+
uv tool install mdformat \
|
|
46
|
+
--with mdformat-frontmatter \
|
|
47
|
+
--with mdformat-gfm
|
|
48
|
+
alias im := install-mdformat
|
|
49
|
+
|
|
42
50
|
# Build with TypeScript
|
|
43
51
|
[no-cd]
|
|
44
52
|
[arg("project", long, short="p", help="Path to tsconfig.json")]
|
|
@@ -101,6 +109,18 @@ alias kc := knip-check
|
|
|
101
109
|
na knip --fix
|
|
102
110
|
alias kw := knip-write
|
|
103
111
|
|
|
112
|
+
# Check Markdown formatting with mdformat
|
|
113
|
+
[group("checks"), no-cd]
|
|
114
|
+
@mdformat-check +paths=".":
|
|
115
|
+
mdformat --check {{ paths }}
|
|
116
|
+
alias mc := mdformat-check
|
|
117
|
+
|
|
118
|
+
# Format Markdown files with mdformat
|
|
119
|
+
[group("checks"), no-cd]
|
|
120
|
+
@mdformat-write +paths=".":
|
|
121
|
+
mdformat {{ paths }}
|
|
122
|
+
alias mw := mdformat-write
|
|
123
|
+
|
|
104
124
|
# Check Prettier formatting
|
|
105
125
|
[group("checks"), no-cd]
|
|
106
126
|
@prettier-check +globs=GLOBS_PRETTIER:
|
package/just/csv.just
CHANGED
|
@@ -16,6 +16,14 @@ _csv-check glob="data/*/*.{csv,tsv}" schema="" ignore="*.invalid *.valid *valida
|
|
|
16
16
|
import subprocess
|
|
17
17
|
import sys
|
|
18
18
|
|
|
19
|
+
def expand_braces(pattern):
|
|
20
|
+
"""Expand brace patterns like {a,b} into multiple patterns."""
|
|
21
|
+
match = re.search(r'\{([^}]+)\}', pattern)
|
|
22
|
+
if not match:
|
|
23
|
+
return [pattern]
|
|
24
|
+
prefix, suffix = pattern[:match.start()], pattern[match.end():]
|
|
25
|
+
return [p for opt in match.group(1).split(',') for p in expand_braces(prefix + opt + suffix)]
|
|
26
|
+
|
|
19
27
|
# Check qsv is available
|
|
20
28
|
if subprocess.run(["which", "qsv"], capture_output=True).returncode != 0:
|
|
21
29
|
print("✗ qsv CLI not found")
|
|
@@ -39,7 +47,7 @@ _csv-check glob="data/*/*.{csv,tsv}" schema="" ignore="*.invalid *.valid *valida
|
|
|
39
47
|
ext_label = 'CSV/TSV'
|
|
40
48
|
|
|
41
49
|
print(f"Validating {ext_label} files...")
|
|
42
|
-
files = globmod.glob(
|
|
50
|
+
files = [f for pattern in expand_braces(globs) for f in globmod.glob(pattern)]
|
|
43
51
|
|
|
44
52
|
# Filter ignored files
|
|
45
53
|
files = [f for f in files if not any(fnmatch.fnmatch(f, p) for p in ignore_patterns)]
|
package/just/evm.just
CHANGED
|
@@ -54,6 +54,7 @@ clean-modules:
|
|
|
54
54
|
|
|
55
55
|
# Run all code checks
|
|
56
56
|
full-check:
|
|
57
|
+
just mdformat-check
|
|
57
58
|
just solhint-check
|
|
58
59
|
just fmt-check
|
|
59
60
|
just prettier-check
|
|
@@ -61,6 +62,7 @@ alias fc := full-check
|
|
|
61
62
|
|
|
62
63
|
# Run all code fixes
|
|
63
64
|
full-write:
|
|
65
|
+
just mdformat-write
|
|
64
66
|
just solhint-write
|
|
65
67
|
just fmt-write
|
|
66
68
|
just prettier-write
|
|
@@ -71,6 +73,16 @@ install *args:
|
|
|
71
73
|
just base::install {{ args }}
|
|
72
74
|
alias i := install
|
|
73
75
|
|
|
76
|
+
# Check Markdown formatting with mdformat
|
|
77
|
+
@mdformat-check +paths=".":
|
|
78
|
+
just base::mdformat-check {{ paths }}
|
|
79
|
+
alias mc := mdformat-check
|
|
80
|
+
|
|
81
|
+
# Format Markdown files with mdformat
|
|
82
|
+
@mdformat-write +paths=".":
|
|
83
|
+
just base::mdformat-write {{ paths }}
|
|
84
|
+
alias mw := mdformat-write
|
|
85
|
+
|
|
74
86
|
# Check Prettier formatting
|
|
75
87
|
@prettier-check globs=GLOBS_PRETTIER:
|
|
76
88
|
just base::prettier-check "{{ globs }}"
|
package/package.json
CHANGED