rumdl 0.0.143__py3-none-win_amd64.whl → 0.0.170__py3-none-win_amd64.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.

rumdl/__init__.py ADDED
@@ -0,0 +1,11 @@
1
+ """
2
+ rumdl: An extremely fast Markdown linter written in Rust.
3
+ """
4
+
5
+ try:
6
+ from importlib.metadata import version
7
+ __version__ = version("rumdl")
8
+ except ImportError:
9
+ # Python < 3.8
10
+ from importlib_metadata import version
11
+ __version__ = version("rumdl")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rumdl
3
- Version: 0.0.143
3
+ Version: 0.0.170
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -33,7 +33,7 @@ Project-URL: Repository, https://github.com/rvben/rumdl.git
33
33
 
34
34
  ![rumdl Logo](https://raw.githubusercontent.com/rvben/rumdl/main/assets/logo.png)
35
35
 
36
- [![Build Status](https://img.shields.io/github/actions/workflow/status/rvben/rumdl/build.yml?branch=main)](https://github.com/rvben/rumdl/actions)
36
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/rvben/rumdl/release.yml?branch=main)](https://github.com/rvben/rumdl/actions)
37
37
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Crates.io](https://img.shields.io/crates/v/rumdl)](https://crates.io/crates/rumdl)
38
38
  [![PyPI](https://img.shields.io/pypi/v/rumdl)](https://pypi.org/project/rumdl/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/rvben/rumdl)](https://github.com/rvben/rumdl/releases/latest) [![GitHub stars](https://img.shields.io/github/stars/rvben/rumdl)](https://github.com/rvben/rumdl/stargazers)
39
39
 
@@ -77,6 +77,14 @@ It offers:
77
77
  - 📏 **Modern CLI** with detailed error reporting
78
78
  - 🔄 **CI/CD friendly** with non-zero exit code on errors
79
79
 
80
+ ### Performance
81
+
82
+ rumdl is designed for speed. Benchmarked on the [Rust Book](https://github.com/rust-lang/book) repository (478 markdown files, October 2025):
83
+
84
+ ![Cold start benchmark comparison](assets/benchmark.svg)
85
+
86
+ With intelligent caching, subsequent runs are even faster - rumdl only re-lints files that have changed, making it ideal for watch mode and editor integration.
87
+
80
88
  ## Table of Contents
81
89
 
82
90
  - [rumdl - A high-performance Markdown linter, written in Rust](#rumdl---a-high-performance-markdown-linter-written-in-rust)
@@ -95,6 +103,7 @@ It offers:
95
103
  - [Stdin/Stdout Formatting](#stdinstdout-formatting)
96
104
  - [Editor Integration](#editor-integration)
97
105
  - [Pre-commit Integration](#pre-commit-integration)
106
+ - [Excluding Files in Pre-commit](#excluding-files-in-pre-commit)
98
107
  - [CI/CD Integration](#cicd-integration)
99
108
  - [GitHub Actions](#github-actions)
100
109
  - [Rules](#rules)
@@ -114,8 +123,10 @@ It offers:
114
123
  - [Usage Examples](#usage-examples)
115
124
  - [Configuration](#configuration)
116
125
  - [Configuration Discovery](#configuration-discovery)
126
+ - [Editor Support (JSON Schema)](#editor-support-json-schema)
117
127
  - [Global Configuration](#global-configuration)
118
128
  - [Markdownlint Migration](#markdownlint-migration)
129
+ - [Inline Configuration](#inline-configuration)
119
130
  - [Configuration File Example](#configuration-file-example)
120
131
  - [Initializing Configuration](#initializing-configuration)
121
132
  - [Configuration in pyproject.toml](#configuration-in-pyprojecttoml)
@@ -131,6 +142,7 @@ It offers:
131
142
  - [Prerequisites](#prerequisites)
132
143
  - [Building](#building)
133
144
  - [Testing](#testing)
145
+ - [JSON Schema Generation](#json-schema-generation)
134
146
  - [License](#license)
135
147
 
136
148
  ## Installation
@@ -168,6 +180,19 @@ uv tool install rumdl
168
180
  uv tool run rumdl check .
169
181
  ```
170
182
 
183
+ ### Using Nix (macOS/Linux)
184
+
185
+ ```bash
186
+ nix-channel --update
187
+ nix-env --install --attr nixpkgs.rumdl
188
+ ```
189
+
190
+ Alternatively, you can use flakes to run it without installation.
191
+
192
+ ```bash
193
+ nix run --extra-experimental-features 'flakes nix-command' nixpkgs/nixpkgs-unstable#rumdl -- --version
194
+ ```
195
+
171
196
  ### Download binary
172
197
 
173
198
  ```bash
@@ -357,8 +382,8 @@ This produces annotations that GitHub automatically displays in the PR's "Files
357
382
 
358
383
  rumdl implements 54 lint rules for Markdown files. Here are some key rule categories:
359
384
 
360
- | Category | Description | Example Rules |
361
- |-----------|-------------|---------------|
385
+ | Category | Description | Example Rules |
386
+ | -----------|-------------|--------------- |
362
387
  | **Headings** | Proper heading structure and formatting | MD001, MD002, MD003 |
363
388
  | **Lists** | Consistent list formatting and structure | MD004, MD005, MD007 |
364
389
  | **Whitespace** | Proper spacing and line length | MD009, MD010, MD012 |
@@ -619,6 +644,27 @@ rumdl check .
619
644
  rumdl check --isolated .
620
645
  ```
621
646
 
647
+ ### Editor Support (JSON Schema)
648
+
649
+ rumdl provides a JSON Schema for `.rumdl.toml` configuration files, enabling autocomplete, validation, and inline documentation in supported editors like VS Code, IntelliJ IDEA, and others.
650
+
651
+ The schema is available at `https://raw.githubusercontent.com/rvben/rumdl/main/rumdl.schema.json`.
652
+
653
+ **VS Code Setup:**
654
+
655
+ 1. Install the "Even Better TOML" extension
656
+ 2. The schema will be automatically associated with `.rumdl.toml` and `rumdl.toml` files once submitted to SchemaStore
657
+
658
+ **Manual Schema Association:**
659
+
660
+ Add this to your `.rumdl.toml` file (in a comment, as TOML doesn't support `$schema`):
661
+
662
+ ```toml
663
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/rvben/rumdl/main/rumdl.schema.json
664
+ ```
665
+
666
+ This enables IntelliSense, validation, and hover documentation for all configuration options.
667
+
622
668
  ### Global Configuration
623
669
 
624
670
  When no project configuration is found, rumdl will check for a user-level configuration file in your platform's standard config directory:
@@ -701,6 +747,12 @@ respect-gitignore = true
701
747
  # Disable specific rules
702
748
  disabled-rules = ["MD013", "MD033"]
703
749
 
750
+ # Disable specific rules for specific files
751
+ [per-file-ignores]
752
+ "README.md" = ["MD033"] # Allow HTML in README
753
+ "SUMMARY.md" = ["MD025"] # Allow multiple H1 in table of contents
754
+ "docs/api/**/*.md" = ["MD013", "MD041"] # Relax rules for generated docs
755
+
704
756
  # Configure individual rules
705
757
  [MD007]
706
758
  indent = 2
@@ -912,6 +964,25 @@ make build
912
964
  make test
913
965
  ```
914
966
 
967
+ ### JSON Schema Generation
968
+
969
+ If you modify the configuration structures in `src/config.rs`, regenerate the JSON schema:
970
+
971
+ ```bash
972
+ # Generate/update the schema
973
+ make schema
974
+ # Or: rumdl schema generate
975
+
976
+ # Check if schema is up-to-date (useful in CI)
977
+ make check-schema
978
+ # Or: rumdl schema check
979
+
980
+ # Print schema to stdout
981
+ rumdl schema print
982
+ ```
983
+
984
+ The schema is automatically generated from the Rust types using `schemars` and should be kept in sync with the configuration structures.
985
+
915
986
  ## License
916
987
 
917
988
  rumdl is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,8 @@
1
+ rumdl-0.0.170.data/scripts/rumdl.exe,sha256=RoEii_q5ekRPJaKRHD8EDZF-AS966-d-t9sWBS60wMU,7233536
2
+ rumdl-0.0.170.dist-info/METADATA,sha256=5yN_DeIkz3btZgoYzMVF2a_cWdLAzuS2H1lBDHc2I0M,31385
3
+ rumdl-0.0.170.dist-info/WHEEL,sha256=BV3ZP699xxmMelj8d6UzKLQSx3JdzqHyifn4bQk5AR8,93
4
+ rumdl-0.0.170.dist-info/licenses/LICENSE,sha256=DbLW8usrvOQqqbNIe3jV76cZ-6LlxbDHy_K_ElIm5ws,1100
5
+ rumdl/__init__.py,sha256=ltWsZOHffd9FQVdbJ0_Wb2x1NwKp2W2GYzPx06MMu6g,278
6
+ rumdl/__main__.py,sha256=RxsYpDd-aeZy4s0ziGvSMq3n39kPYPfFgHeNd9dAapM,1936
7
+ rumdl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ rumdl-0.0.170.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.4)
2
+ Generator: maturin (1.9.6)
3
3
  Root-Is-Purelib: false
4
4
  Tag: py3-none-win_amd64
python/rumdl/__init__.py DELETED
@@ -1,5 +0,0 @@
1
- """
2
- rumdl: An extremely fast Markdown linter written in Rust.
3
- """
4
-
5
- __version__ = "0.0.12"
@@ -1,8 +0,0 @@
1
- python/rumdl/__init__.py,sha256=oHcESVopbLsh5hnNa4Z1iLIS-Bi9ai_Bzc5mLuibiUY,95
2
- python/rumdl/__main__.py,sha256=RxsYpDd-aeZy4s0ziGvSMq3n39kPYPfFgHeNd9dAapM,1936
3
- python/rumdl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- rumdl-0.0.143.data/scripts/rumdl.exe,sha256=wo-1QcReiZPKMOTjYTdThnURqpToUi9iH6DZPorCRCk,7052800
5
- rumdl-0.0.143.dist-info/METADATA,sha256=audkGVb_n5i_J5bQ85RZsSLpbV_cnku4XVhwU8I5Vbc,28836
6
- rumdl-0.0.143.dist-info/WHEEL,sha256=ubF6pSMXfesltAnfP_hEAu2k7YT3fHJXHWEIY1cdTgY,93
7
- rumdl-0.0.143.dist-info/licenses/LICENSE,sha256=DbLW8usrvOQqqbNIe3jV76cZ-6LlxbDHy_K_ElIm5ws,1100
8
- rumdl-0.0.143.dist-info/RECORD,,
File without changes
File without changes