@owenlamont/ryl-linux-arm64-musl 0.4.2

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +261 -0
  3. package/bin/ryl +0 -0
  4. package/package.json +31 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Owen Lamont
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,261 @@
1
+ # ryl
2
+
3
+ ryl - the Rust Yaml Linter is intended to ultimately be a drop in replacement for
4
+ [yamllint](https://github.com/adrienverge/yamllint). It is usable today, but
5
+ parity and edge-case behavior are still maturing.
6
+
7
+ Compatibility note:
8
+
9
+ - `ryl` aims to match `yamllint` behavior and includes many parity tests.
10
+ - `ryl` uses the `saphyr` parser stack, while `yamllint` uses the `PyYAML` parser stack.
11
+ - `saphyr` and `PyYAML` do not always agree on which files are valid YAML.
12
+
13
+ ## Quick Start
14
+
15
+ ```bash
16
+ # Using uv (Python)
17
+ uvx ryl .
18
+
19
+ # Using npx (Node.js)
20
+ npx @owenlamont/ryl .
21
+ ```
22
+
23
+ For `prek` / `pre-commit` integration, see
24
+ [ryl-pre-commit](https://github.com/owenlamont/ryl-pre-commit).
25
+
26
+ ## Installation
27
+
28
+ ### uv
29
+
30
+ ```bash
31
+ uv tool install ryl
32
+ ```
33
+
34
+ ### NPM
35
+
36
+ ```bash
37
+ npm install -g @owenlamont/ryl
38
+ ```
39
+
40
+ The npm package installs a platform-specific native binary from npm optional
41
+ dependencies rather than downloading release archives at runtime.
42
+
43
+ Currently supported npm platforms:
44
+
45
+ - macOS arm64
46
+ - Linux x64 musl
47
+ - Linux arm64 musl
48
+ - Linux armv7 GNU
49
+ - Linux ia32 GNU
50
+ - Linux ppc64le GNU
51
+ - Linux s390x GNU
52
+ - Windows x64 MSVC
53
+ - Windows arm64 MSVC
54
+
55
+ Intel macOS is not currently published via npm because this repo does not build
56
+ that target in release automation.
57
+
58
+ ### pip
59
+
60
+ ```bash
61
+ pip install ryl
62
+ ```
63
+
64
+ ### Cargo
65
+
66
+ ```bash
67
+ cargo install ryl
68
+ ```
69
+
70
+ ## Usage
71
+
72
+ ryl accepts one or more paths: files and/or directories.
73
+
74
+ Basic:
75
+
76
+ ```text
77
+ ryl <PATH_OR_FILE> [PATH_OR_FILE...]
78
+ ```
79
+
80
+ Behavior:
81
+
82
+ - Files: parsed as YAML even if the extension is not `.yml`/`.yaml`.
83
+ - Directories: recursively lints `.yml` and `.yaml` files.
84
+ - Respects `.gitignore`, global git ignores, and git excludes.
85
+ - Does not follow symlinks.
86
+
87
+ Exit codes:
88
+
89
+ - `0` when all parsed files are valid (or no files found).
90
+ - `1` when any invalid YAML is found.
91
+ - `2` for CLI usage errors (for example, no paths provided).
92
+
93
+ Examples:
94
+
95
+ ```text
96
+ # Single file
97
+ ryl myfile.yml
98
+
99
+ # Multiple inputs (mix files and directories)
100
+ ryl config/ another.yml
101
+
102
+ # Multiple directories
103
+ ryl dir1 dir2
104
+
105
+ # Explicit non-YAML extension (parsed as YAML)
106
+ ryl notes.txt
107
+ ```
108
+
109
+ Help and version:
110
+
111
+ ```text
112
+ Fast YAML linter written in Rust
113
+
114
+ Usage: ryl [OPTIONS] [PATH_OR_FILE]...
115
+
116
+ Arguments:
117
+ [PATH_OR_FILE]... One or more paths: files and/or directories
118
+
119
+ Options:
120
+ -c, --config-file <FILE> Path to configuration file (YAML or TOML)
121
+ -d, --config-data <YAML> Inline configuration data (yaml)
122
+ -f, --format <FORMAT> Output format (auto, standard, colored, github,
123
+ parsable) [default: auto]
124
+ [possible values: auto, standard, colored,
125
+ github, parsable]
126
+ --migrate-configs Convert discovered legacy YAML config files
127
+ into .ryl.toml files
128
+ --list-files List files that would be linted (reserved)
129
+ -s, --strict Strict mode (reserved)
130
+ --no-warnings Suppress warnings (reserved)
131
+ --migrate-root <DIR> Root path to search for legacy YAML config
132
+ files (default: .)
133
+ --migrate-write Write migrated .ryl.toml files (otherwise
134
+ preview only)
135
+ --migrate-stdout Print generated TOML to stdout during migration
136
+ --migrate-rename-old <SUFFIX> Rename source YAML configs by appending
137
+ this suffix after migration
138
+ --migrate-delete-old Delete source YAML configs after migration
139
+ -h, --help Print help
140
+ -V, --version Print version
141
+ ```
142
+
143
+ ## Performance benchmarking
144
+
145
+ This repo includes a standalone benchmark script that compares PyPI `ryl` and
146
+ `yamllint` using synthetic YAML corpora and `hyperfine`.
147
+
148
+ Prerequisites:
149
+
150
+ - `uv`
151
+ - `hyperfine`
152
+
153
+ Run a quick sample:
154
+
155
+ ```text
156
+ uv run scripts/benchmark_perf_vs_yamllint.py --file-counts 25,100 --file-sizes-kib 1,8 --runs 5 --warmup 1
157
+ ```
158
+
159
+ Run a fuller matrix (explicit lists):
160
+
161
+ ```text
162
+ uv run scripts/benchmark_perf_vs_yamllint.py --file-counts 25,100,400,1000 --file-sizes-kib 1,8,32,128 --runs 10 --warmup 2
163
+ ```
164
+
165
+ Run a fuller matrix (ranges with increments):
166
+
167
+ ```text
168
+ uv run scripts/benchmark_perf_vs_yamllint.py --file-count-start 100 --file-count-end 1000 --file-count-step 100 --file-size-start-kib 4 --file-size-end-kib 64 --file-size-step-kib 4 --runs 10 --warmup 2
169
+ ```
170
+
171
+ The script uses Typer; use `--help` for all options.
172
+
173
+ Artifacts are written under `manual_outputs/benchmarks/<UTC_TIMESTAMP>/`:
174
+
175
+ - `benchmark.png` and `benchmark.svg`: side-by-side facet plot with shared Y axis.
176
+ - `summary.csv`: aggregated timing table.
177
+ - `meta.json`: tool versions and run parameters.
178
+ - `hyperfine-json/`: raw results from `hyperfine`.
179
+
180
+ Example benchmark figure (5x5 matrix, 5 runs per point):
181
+
182
+ ![Benchmark: ryl vs yamllint scaling (5x5 matrix, 5 runs per point)](https://raw.githubusercontent.com/owenlamont/ryl/v0.3.4/img/benchmark-5x5-5runs.svg)
183
+
184
+ ## Configuration
185
+
186
+ - Flags:
187
+ - `-c, --config-file <FILE>`: path to a YAML or TOML config file.
188
+ - `-d, --config-data <YAML>`: inline YAML config (highest precedence).
189
+ - `--list-files`: print files that would be linted after applying ignores and exit.
190
+ - `--migrate-configs`: discover legacy YAML configs and plan TOML migration.
191
+ - `--migrate-root <DIR>`: root to search for legacy YAML configs (default `.`).
192
+ - `--migrate-write`: write migrated `.ryl.toml` files (without this it is preview-only).
193
+ - `--migrate-stdout`: print generated TOML in migration mode.
194
+ - `--migrate-rename-old <SUFFIX>`: rename discovered legacy YAML config files after writing.
195
+ - `--migrate-delete-old`: delete discovered legacy YAML config files after writing.
196
+ - `-f, --format`, `-s, --strict`, `--no-warnings`: reserved for compatibility.
197
+ - Discovery precedence:
198
+ inline `--config-data` > `--config-file` > env `YAMLLINT_CONFIG_FILE`
199
+ (global) > nearest project config up the tree:
200
+ TOML (`.ryl.toml`, `ryl.toml`, `pyproject.toml` with `[tool.ryl]`) then
201
+ YAML fallback (`.yamllint`, `.yamllint.yml`, `.yamllint.yaml`)
202
+ > user-global (`$XDG_CONFIG_HOME/yamllint/config` or
203
+ `~/.config/yamllint/config`) > built-in defaults.
204
+ - TOML and YAML are not merged during discovery. If a TOML project config is
205
+ found, YAML project config discovery is skipped (and `ryl` prints a warning).
206
+ - Per-file behavior: unless a global config is set via `--config-data`,
207
+ `--config-file`, or `YAMLLINT_CONFIG_FILE`, each file discovers its nearest
208
+ project config. Ignores apply to directory scans and explicit files (parity).
209
+ - Presets and extends: supports yamllint’s built-in `default`, `relaxed`, and
210
+ `empty` via `extends`. Rule maps are deep-merged; scalars/sequences overwrite.
211
+ - TOML preset examples: see
212
+ [docs/config-presets.md](/home/owen/Code/ryl_repos/ryl/docs/config-presets.md)
213
+ for `default`/`relaxed` equivalents.
214
+
215
+ Example TOML config (`.ryl.toml`):
216
+
217
+ ```toml
218
+ yaml-files = ["*.yaml", "*.yml"]
219
+ ignore = ["vendor/**", "generated/**"]
220
+ locale = "en_US.UTF-8"
221
+
222
+ [rules]
223
+ document-start = "disable"
224
+
225
+ [rules.line-length]
226
+ max = 120
227
+
228
+ [rules.truthy]
229
+ allowed-values = ["true", "false"]
230
+ ```
231
+
232
+ Migration example:
233
+
234
+ ```text
235
+ # Preview migration actions
236
+ ryl --migrate-configs --migrate-root .
237
+
238
+ # Write .ryl.toml files and keep old files with a suffix
239
+ ryl --migrate-configs --migrate-root . --migrate-write --migrate-rename-old .bak
240
+ ```
241
+
242
+ ## Acknowledgements
243
+
244
+ This project exists thanks to the tooling and ecosystems around YAML linting and
245
+ developer automation, especially:
246
+
247
+ - [yamllint](https://github.com/adrienverge/yamllint) - for giving me the shoulders to
248
+ stand on and the source of many of the automated tests that ryl uses now to check for
249
+ behaviour parity. Copying the behaviour of an existing tool is infinitely easier than
250
+ building one from scratch - there'd be no ryl without yamllint.
251
+ - [ruff](https://github.com/astral-sh/ruff) - for showing the power of Rust tooling for
252
+ Python development and inspiring the config and API for ryl.
253
+ - [rumdl](https://github.com/rvben/rumdl) - for giving me another template to follow for
254
+ Rust tooling and showing me almost the only dev tool I was still using after this that
255
+ wasn't written in Rust was yamllint (which inspired me to tackle this project)
256
+ - [saphyr](https://github.com/saphyr-rs/saphyr) - ryl is built on saphyr and saphyr's
257
+ developers were very patient in showing some of the nuance and complexity of parsing
258
+ YAML which I was embarrassingly ignorant of when start ryl.
259
+ - [esbuild](https://github.com/evanw/esbuild) and
260
+ [biome](https://github.com/biomejs/biome) - for providing the "binary wrapper"
261
+ blueprint for distributing high-performance native tools via NPM.
package/bin/ryl ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@owenlamont/ryl-linux-arm64-musl",
3
+ "version": "0.4.2",
4
+ "description": "Fast YAML linter inspired by yamllint",
5
+ "author": "Owen Lamont",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/owenlamont/ryl#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/owenlamont/ryl/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/owenlamont/ryl.git"
14
+ },
15
+ "type": "commonjs",
16
+ "files": [
17
+ "bin/",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "os": [
22
+ "linux"
23
+ ],
24
+ "cpu": [
25
+ "arm64"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "preferUnplugged": true
31
+ }