rumdl 0.0.123__py3-none-musllinux_1_2_x86_64.whl → 0.0.125__py3-none-musllinux_1_2_x86_64.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.

Potentially problematic release.


This version of rumdl might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rumdl
3
- Version: 0.0.123
3
+ Version: 0.0.125
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,38 @@ 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
+ # Provide filename context for better error messages (useful for editor integrations)
269
+ cat README.md | rumdl check - --stdin-filename README.md
270
+ ```
271
+
272
+ ### Editor Integration
273
+
274
+ For editor integration, use stdin/stdout mode with the `--quiet` flag to suppress diagnostic messages:
275
+
276
+ ```bash
277
+ # Format selection in editor (example for vim)
278
+ :'<,'>!rumdl fmt - --quiet
279
+
280
+ # Format entire buffer
281
+ :%!rumdl fmt - --quiet
282
+ ```
283
+
248
284
  ## Pre-commit Integration
249
285
 
250
286
  You can use `rumdl` as a pre-commit hook to check and fix your Markdown files.
@@ -337,6 +373,37 @@ Lint Markdown files and print warnings/errors (main subcommand)
337
373
  - `-o, --output <format>`: Output format: `text` (default) or `json`
338
374
  - `--stdin`: Read from stdin instead of files
339
375
 
376
+ #### `fmt [PATHS...]`
377
+
378
+ Format Markdown files (alias for `check --fix`)
379
+
380
+ **Arguments:**
381
+
382
+ - `[PATHS...]`: Files or directories to format. If provided, these paths take precedence over include patterns
383
+
384
+ **Options:**
385
+
386
+ All the same options as `check` are available (except `--fix` which is always enabled), including:
387
+ - `--stdin`: Format content from stdin and output to stdout
388
+ - `-d, --disable <rules>`: Disable specific rules during formatting
389
+ - `-e, --enable <rules>`: Format using only specific rules
390
+ - `--exclude/--include`: Control which files to format
391
+ - `-q, --quiet`: Suppress diagnostic output
392
+
393
+ **Examples:**
394
+
395
+ ```bash
396
+ # Format all Markdown files in current directory
397
+ rumdl fmt
398
+
399
+ # Format specific file
400
+ rumdl fmt README.md
401
+
402
+ # Format from stdin (using dash syntax)
403
+ cat README.md | rumdl fmt - > formatted.md
404
+ # Alternative: cat README.md | rumdl fmt --stdin > formatted.md
405
+ ```
406
+
340
407
  #### `init [OPTIONS]`
341
408
 
342
409
  Create a default configuration file in the current directory
@@ -428,8 +495,9 @@ This allows scripts and CI/CD systems to distinguish between "the tool found pro
428
495
  # Lint all Markdown files in the current directory
429
496
  rumdl check .
430
497
 
431
- # Automatically fix issues
432
- rumdl check --fix .
498
+ # Format files (automatically fix issues)
499
+ rumdl fmt .
500
+ # Alternative: rumdl check --fix .
433
501
 
434
502
  # Create a default configuration file
435
503
  rumdl init
@@ -484,11 +552,33 @@ rumdl version
484
552
 
485
553
  rumdl can be configured in several ways:
486
554
 
487
- 1. Using a `.rumdl.toml` file in your project directory
555
+ 1. Using a `.rumdl.toml` file in your project directory or parent directories
488
556
  2. Using the `[tool.rumdl]` section in your project's `pyproject.toml` file (for Python projects)
489
557
  3. Using command-line arguments
490
558
  4. **Automatic markdownlint compatibility**: rumdl automatically discovers and loads existing markdownlint config files (`.markdownlint.json`, `.markdownlint.yaml`, etc.)
491
559
 
560
+ ### Configuration Discovery
561
+
562
+ rumdl automatically searches for configuration files by traversing up the directory tree from the current
563
+ working directory, similar to tools like `git`, `ruff`, and `eslint`. This means you can run rumdl from any
564
+ subdirectory of your project and it will find the configuration file at the project root.
565
+
566
+ The search follows these rules:
567
+ - Searches upward for `.rumdl.toml`, `rumdl.toml`, or `pyproject.toml` (with `[tool.rumdl]` section)
568
+ - Stops at the first configuration file found
569
+ - Stops searching when it encounters a `.git` directory (project boundary)
570
+ - Maximum traversal depth of 100 directories
571
+
572
+ To disable all configuration discovery and use only built-in defaults, use the `--isolated` flag:
573
+
574
+ ```bash
575
+ # Use discovered configuration (default behavior)
576
+ rumdl check .
577
+
578
+ # Ignore all configuration files
579
+ rumdl check --isolated .
580
+ ```
581
+
492
582
  ### Markdownlint Migration
493
583
 
494
584
  rumdl provides seamless compatibility with existing markdownlint configurations:
@@ -660,7 +750,7 @@ README.md:24:5: [MD037] Spaces inside emphasis markers: "* incorrect *" [*]
660
750
  README.md:42:3: [MD010] Hard tabs found, use spaces instead [*]
661
751
 
662
752
  Found 3 issues in 1 file (2 files checked)
663
- Run with `--fix` to automatically fix issues
753
+ Run `rumdl fmt` to automatically fix issues
664
754
  ```
665
755
 
666
756
  ### 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.125.data/scripts/rumdl,sha256=SY9pWW_Q-BcXtCaGS3mhkr31rWlMSUsDRN07BsX_Mww,6190280
5
+ rumdl-0.0.125.dist-info/METADATA,sha256=stM3UIrSmDvrTVOecVpSCC_5-pqw2Sry-JhOGVtvz24,24769
6
+ rumdl-0.0.125.dist-info/WHEEL,sha256=ZiKCVJQyCIbXpOYnG9r5TWsf4V1VNqD20bP8-FGilBA,104
7
+ rumdl-0.0.125.dist-info/licenses/LICENSE,sha256=Ux7uE0WuoLktCyy3w5lLIz3_6dc47R0qauPN30mz13M,1079
8
+ rumdl-0.0.125.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=x5hj9wVOEloPPYwBs190aZ8wyIaT-MSiD2v6NmeF4hc,6181512
5
- rumdl-0.0.123.dist-info/METADATA,sha256=h5ZbDUprc614kdM7G-cvZ-ZqaG2_2DWYKDwB8uyP41A,21895
6
- rumdl-0.0.123.dist-info/WHEEL,sha256=ZiKCVJQyCIbXpOYnG9r5TWsf4V1VNqD20bP8-FGilBA,104
7
- rumdl-0.0.123.dist-info/licenses/LICENSE,sha256=Ux7uE0WuoLktCyy3w5lLIz3_6dc47R0qauPN30mz13M,1079
8
- rumdl-0.0.123.dist-info/RECORD,,