rumdl 0.0.123__py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.0.124__py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rumdl
3
- Version: 0.0.123
3
+ Version: 0.0.124
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -55,8 +55,9 @@ cargo install rumdl
55
55
  # Lint Markdown files in the current directory
56
56
  rumdl check .
57
57
 
58
- # Automatically fix issues
59
- rumdl check --fix .
58
+ # Format files (automatically fix issues)
59
+ rumdl fmt .
60
+ # Alternative: rumdl check --fix .
60
61
 
61
62
  # Create a default configuration file
62
63
  rumdl init
@@ -64,7 +65,7 @@ rumdl init
64
65
 
65
66
  ## Overview
66
67
 
67
- rumdl is a high-performance Markdown linter and fixer that helps ensure consistency and best practices
68
+ rumdl is a high-performance Markdown linter and formatter that helps ensure consistency and best practices
68
69
  in your Markdown files. Inspired by [ruff](https://github.com/astral-sh/ruff)'s approach to Python linting,
69
70
  rumdl brings similar speed and developer experience improvements to the Markdown ecosystem.
70
71
 
@@ -72,7 +73,7 @@ It offers:
72
73
 
73
74
  - ⚡️ **Built for speed** with Rust - significantly faster than alternatives
74
75
  - 🔍 **54 lint rules** covering common Markdown issues
75
- - 🛠️ **Automatic fixing** with `--fix` for most rules
76
+ - 🛠️ **Automatic formatting** with `--fix` for files and stdin/stdout
76
77
  - 📦 **Zero dependencies** - single binary with no runtime requirements
77
78
  - 🔧 **Highly configurable** with TOML-based config files
78
79
  - 🌐 **Multiple installation options** - Rust, Python, standalone binaries
@@ -95,6 +96,8 @@ It offers:
95
96
  - [Download binary](#download-binary)
96
97
  - [VS Code Extension](#vs-code-extension)
97
98
  - [Usage](#usage)
99
+ - [Stdin/Stdout Formatting](#stdinstdout-formatting)
100
+ - [Editor Integration](#editor-integration)
98
101
  - [Pre-commit Integration](#pre-commit-integration)
99
102
  - [CI/CD Integration](#cicd-integration)
100
103
  - [GitHub Actions](#github-actions)
@@ -102,6 +105,7 @@ It offers:
102
105
  - [Command-line Interface](#command-line-interface)
103
106
  - [Commands](#commands)
104
107
  - [`check [PATHS...]`](#check-paths)
108
+ - [`fmt [PATHS...]`](#fmt-paths)
105
109
  - [`init [OPTIONS]`](#init-options)
106
110
  - [`import <FILE> [OPTIONS]`](#import-file-options)
107
111
  - [`rule [<rule>]`](#rule-rule)
@@ -213,8 +217,8 @@ rumdl check README.md
213
217
  # Lint all Markdown files in current directory and subdirectories
214
218
  rumdl check .
215
219
 
216
- # Automatically fix issues
217
- rumdl check --fix README.md
220
+ # Format a specific file
221
+ rumdl fmt README.md
218
222
 
219
223
  # Create a default configuration file
220
224
  rumdl init
@@ -245,6 +249,35 @@ rumdl check --include "docs/**/*.md" --exclude "docs/temp,docs/drafts" .
245
249
  rumdl check --respect-gitignore=false .
246
250
  ```
247
251
 
252
+ ### Stdin/Stdout Formatting
253
+
254
+ rumdl supports formatting via stdin/stdout, making it ideal for editor integrations and CI pipelines:
255
+
256
+ ```bash
257
+ # Format content from stdin and output to stdout
258
+ cat README.md | rumdl fmt - > README_formatted.md
259
+ # Alternative: cat README.md | rumdl fmt --stdin > README_formatted.md
260
+
261
+ # Use in a pipeline
262
+ echo "# Title " | rumdl fmt -
263
+ # Output: # Title
264
+
265
+ # Format clipboard content (macOS example)
266
+ pbpaste | rumdl fmt - | pbcopy
267
+ ```
268
+
269
+ ### Editor Integration
270
+
271
+ For editor integration, use stdin/stdout mode with the `--quiet` flag to suppress diagnostic messages:
272
+
273
+ ```bash
274
+ # Format selection in editor (example for vim)
275
+ :'<,'>!rumdl fmt - --quiet
276
+
277
+ # Format entire buffer
278
+ :%!rumdl fmt - --quiet
279
+ ```
280
+
248
281
  ## Pre-commit Integration
249
282
 
250
283
  You can use `rumdl` as a pre-commit hook to check and fix your Markdown files.
@@ -337,6 +370,37 @@ Lint Markdown files and print warnings/errors (main subcommand)
337
370
  - `-o, --output <format>`: Output format: `text` (default) or `json`
338
371
  - `--stdin`: Read from stdin instead of files
339
372
 
373
+ #### `fmt [PATHS...]`
374
+
375
+ Format Markdown files (alias for `check --fix`)
376
+
377
+ **Arguments:**
378
+
379
+ - `[PATHS...]`: Files or directories to format. If provided, these paths take precedence over include patterns
380
+
381
+ **Options:**
382
+
383
+ All the same options as `check` are available (except `--fix` which is always enabled), including:
384
+ - `--stdin`: Format content from stdin and output to stdout
385
+ - `-d, --disable <rules>`: Disable specific rules during formatting
386
+ - `-e, --enable <rules>`: Format using only specific rules
387
+ - `--exclude/--include`: Control which files to format
388
+ - `-q, --quiet`: Suppress diagnostic output
389
+
390
+ **Examples:**
391
+
392
+ ```bash
393
+ # Format all Markdown files in current directory
394
+ rumdl fmt
395
+
396
+ # Format specific file
397
+ rumdl fmt README.md
398
+
399
+ # Format from stdin (using dash syntax)
400
+ cat README.md | rumdl fmt - > formatted.md
401
+ # Alternative: cat README.md | rumdl fmt --stdin > formatted.md
402
+ ```
403
+
340
404
  #### `init [OPTIONS]`
341
405
 
342
406
  Create a default configuration file in the current directory
@@ -428,8 +492,9 @@ This allows scripts and CI/CD systems to distinguish between "the tool found pro
428
492
  # Lint all Markdown files in the current directory
429
493
  rumdl check .
430
494
 
431
- # Automatically fix issues
432
- rumdl check --fix .
495
+ # Format files (automatically fix issues)
496
+ rumdl fmt .
497
+ # Alternative: rumdl check --fix .
433
498
 
434
499
  # Create a default configuration file
435
500
  rumdl init
@@ -484,11 +549,33 @@ rumdl version
484
549
 
485
550
  rumdl can be configured in several ways:
486
551
 
487
- 1. Using a `.rumdl.toml` file in your project directory
552
+ 1. Using a `.rumdl.toml` file in your project directory or parent directories
488
553
  2. Using the `[tool.rumdl]` section in your project's `pyproject.toml` file (for Python projects)
489
554
  3. Using command-line arguments
490
555
  4. **Automatic markdownlint compatibility**: rumdl automatically discovers and loads existing markdownlint config files (`.markdownlint.json`, `.markdownlint.yaml`, etc.)
491
556
 
557
+ ### Configuration Discovery
558
+
559
+ rumdl automatically searches for configuration files by traversing up the directory tree from the current
560
+ working directory, similar to tools like `git`, `ruff`, and `eslint`. This means you can run rumdl from any
561
+ subdirectory of your project and it will find the configuration file at the project root.
562
+
563
+ The search follows these rules:
564
+ - Searches upward for `.rumdl.toml`, `rumdl.toml`, or `pyproject.toml` (with `[tool.rumdl]` section)
565
+ - Stops at the first configuration file found
566
+ - Stops searching when it encounters a `.git` directory (project boundary)
567
+ - Maximum traversal depth of 100 directories
568
+
569
+ To disable all configuration discovery and use only built-in defaults, use the `--isolated` flag:
570
+
571
+ ```bash
572
+ # Use discovered configuration (default behavior)
573
+ rumdl check .
574
+
575
+ # Ignore all configuration files
576
+ rumdl check --isolated .
577
+ ```
578
+
492
579
  ### Markdownlint Migration
493
580
 
494
581
  rumdl provides seamless compatibility with existing markdownlint configurations:
@@ -660,7 +747,7 @@ README.md:24:5: [MD037] Spaces inside emphasis markers: "* incorrect *" [*]
660
747
  README.md:42:3: [MD010] Hard tabs found, use spaces instead [*]
661
748
 
662
749
  Found 3 issues in 1 file (2 files checked)
663
- Run with `--fix` to automatically fix issues
750
+ Run `rumdl fmt` to automatically fix issues
664
751
  ```
665
752
 
666
753
  ### Output Format
@@ -0,0 +1,8 @@
1
+ python/rumdl/__init__.py,sha256=En6tBgSj-MMeUcBAV7HlMjfstzY6npWxZtsRa30hIj0,90
2
+ python/rumdl/__main__.py,sha256=6JiDzauqRloCD8LQ_edF-T_RHmoiTWLyMvHjqARL05s,1879
3
+ python/rumdl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ rumdl-0.0.124.data/scripts/rumdl,sha256=wbh-GqI9JCoOzK2t0mWHnpO7hkZoJYMEJGFcS0UR_Is,5757024
5
+ rumdl-0.0.124.dist-info/METADATA,sha256=qvBM6jnnbHg5YIaipLIjE5hs62y-wwHiMSavLCVazUs,24625
6
+ rumdl-0.0.124.dist-info/WHEEL,sha256=pYQPiWbaJDy-D9RL-xCnMW5N3F4dLasIziomHBn2QNA,128
7
+ rumdl-0.0.124.dist-info/licenses/LICENSE,sha256=Ux7uE0WuoLktCyy3w5lLIz3_6dc47R0qauPN30mz13M,1079
8
+ rumdl-0.0.124.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- python/rumdl/__init__.py,sha256=En6tBgSj-MMeUcBAV7HlMjfstzY6npWxZtsRa30hIj0,90
2
- python/rumdl/__main__.py,sha256=6JiDzauqRloCD8LQ_edF-T_RHmoiTWLyMvHjqARL05s,1879
3
- python/rumdl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- rumdl-0.0.123.data/scripts/rumdl,sha256=Q2XArido_Fim_bV_A9cu-au8H-oBi-ZiJHb6vLTaS_Y,5750536
5
- rumdl-0.0.123.dist-info/METADATA,sha256=h5ZbDUprc614kdM7G-cvZ-ZqaG2_2DWYKDwB8uyP41A,21895
6
- rumdl-0.0.123.dist-info/WHEEL,sha256=pYQPiWbaJDy-D9RL-xCnMW5N3F4dLasIziomHBn2QNA,128
7
- rumdl-0.0.123.dist-info/licenses/LICENSE,sha256=Ux7uE0WuoLktCyy3w5lLIz3_6dc47R0qauPN30mz13M,1079
8
- rumdl-0.0.123.dist-info/RECORD,,