readability-cli 0.10.7__tar.gz → 0.11.0__tar.gz
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.
- {readability_cli-0.10.7 → readability_cli-0.11.0}/PKG-INFO +11 -17
- {readability_cli-0.10.7 → readability_cli-0.11.0}/README.md +11 -17
- {readability_cli-0.10.7 → readability_cli-0.11.0}/pyproject.toml +1 -1
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/configs/biome-default.json +3 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guide.py +5 -5
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/cppguide.md +1751 -1205
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/docguide-style.md +169 -27
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/go-guide.md +19 -7
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/htmlcssguide.md +9 -15
- readability_cli-0.11.0/readability/guides/javaguide.md +1472 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/jsguide.md +89 -12
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/pyguide.md +11 -13
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/shellguide.md +1 -1
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/tsguide.md +2080 -647
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/tools.py +2 -2
- {readability_cli-0.10.7 → readability_cli-0.11.0}/test_checking.py +27 -4
- {readability_cli-0.10.7 → readability_cli-0.11.0}/uv.lock +1 -1
- readability_cli-0.10.7/readability/guides/javaguide.md +0 -1205
- {readability_cli-0.10.7 → readability_cli-0.11.0}/.github/workflows/ci.yml +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/.github/workflows/publish.yml +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/.github/workflows/update-guides.yml +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/.gitignore +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/.python-version +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/LICENSE +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/biome.json +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/__init__.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/checking.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/cli.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/configs/pyrefly.toml +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/configs/ruff.toml +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/Rguide.md +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/csharpguide.md +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/jsoncguide.md +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/objcguide.md +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/guides/vimscriptguide.md +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/readability/outline.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/test_guide.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/test_outline.py +0 -0
- {readability_cli-0.10.7 → readability_cli-0.11.0}/test_package.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: readability-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: A CLI to lint, format, and type-check code with Google-style defaults, and pull Google style guides in markdown format.
|
|
5
5
|
Project-URL: Homepage, https://github.com/owahltinez/readability
|
|
6
6
|
Project-URL: Repository, https://github.com/owahltinez/readability
|
|
@@ -103,15 +103,15 @@ such as gofmt and goimports, are unaffected by it.
|
|
|
103
103
|
|
|
104
104
|
### Supported Formats
|
|
105
105
|
|
|
106
|
-
| Formats
|
|
107
|
-
|
|
|
108
|
-
| `.py`
|
|
109
|
-
| `.js`, `.jsx`, `.ts`, `.tsx`, `.json`, `.jsonc`, `.css`, `.html` | Biome | `biome.json` or `biome.jsonc` |
|
|
110
|
-
| `.go`
|
|
111
|
-
| `.sh`, `.bash`
|
|
112
|
-
| `.rs`
|
|
106
|
+
| Formats | Owners | Project configuration |
|
|
107
|
+
| ----------------------------------------------------------------------- | --------------------------------------- | ------------------------------------- |
|
|
108
|
+
| `.py` | Ruff lint/format; Pyrefly type checking | Ruff and Pyrefly native configuration |
|
|
109
|
+
| `.js`, `.jsx`, `.ts`, `.tsx`, `.json`, `.jsonc`, `.css`, `.html`, `.md` | Biome | `biome.json` or `biome.jsonc` |
|
|
110
|
+
| `.go` | gofmt, goimports | None |
|
|
111
|
+
| `.sh`, `.bash` | shfmt format; shellcheck lint | None |
|
|
112
|
+
| `.rs` | rustfmt | None |
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
YAML, SCSS, JSONL, and extensions not listed above are unsupported.
|
|
115
115
|
An unsupported-only path reports that nothing was checked and exits
|
|
116
116
|
successfully.
|
|
117
117
|
|
|
@@ -132,12 +132,6 @@ to Ruff's — which has published seventeen minor series, roughly one every six
|
|
|
132
132
|
weeks. If you need a fixed version, install it: an installed tool always wins
|
|
133
133
|
over a fetched one.
|
|
134
134
|
|
|
135
|
-
Biome is the temporary exception, pinned to 2.5.14: from 2.5.15 it panics
|
|
136
|
-
(`path is expected to be under the root`) when the bundled config sits outside
|
|
137
|
-
the repository being checked, which is every project without its own
|
|
138
|
-
`biome.json` ([biomejs/biome#12158](https://github.com/biomejs/biome/issues/12158)).
|
|
139
|
-
The pin goes once upstream fixes it.
|
|
140
|
-
|
|
141
135
|
Set `UV_OFFLINE=1` to forbid fetching. A tool that then cannot be reached fails
|
|
142
136
|
the run rather than passing it.
|
|
143
137
|
|
|
@@ -210,8 +204,8 @@ For Python, add `[tool.ruff]` or `[tool.pyrefly]` to `pyproject.toml`, or use
|
|
|
210
204
|
their native project configurations in place of bundled defaults. Readability
|
|
211
205
|
does not interpret EditorConfig itself; a canonical tool such as Biome may opt
|
|
212
206
|
into it through that tool's native configuration. Neither gofmt nor goimports
|
|
213
|
-
has project settings. The bundled Biome file requires Biome 2.5 or later
|
|
214
|
-
|
|
207
|
+
has project settings. The bundled Biome file requires Biome 2.5 or later, and
|
|
208
|
+
Markdown needs 2.6.
|
|
215
209
|
|
|
216
210
|
Configuration is found per file, in the file's own directory and then its
|
|
217
211
|
ancestors, which is where each canonical tool looks. A package keeping its
|
|
@@ -89,15 +89,15 @@ such as gofmt and goimports, are unaffected by it.
|
|
|
89
89
|
|
|
90
90
|
### Supported Formats
|
|
91
91
|
|
|
92
|
-
| Formats
|
|
93
|
-
|
|
|
94
|
-
| `.py`
|
|
95
|
-
| `.js`, `.jsx`, `.ts`, `.tsx`, `.json`, `.jsonc`, `.css`, `.html` | Biome | `biome.json` or `biome.jsonc` |
|
|
96
|
-
| `.go`
|
|
97
|
-
| `.sh`, `.bash`
|
|
98
|
-
| `.rs`
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
| Formats | Owners | Project configuration |
|
|
93
|
+
| ----------------------------------------------------------------------- | --------------------------------------- | ------------------------------------- |
|
|
94
|
+
| `.py` | Ruff lint/format; Pyrefly type checking | Ruff and Pyrefly native configuration |
|
|
95
|
+
| `.js`, `.jsx`, `.ts`, `.tsx`, `.json`, `.jsonc`, `.css`, `.html`, `.md` | Biome | `biome.json` or `biome.jsonc` |
|
|
96
|
+
| `.go` | gofmt, goimports | None |
|
|
97
|
+
| `.sh`, `.bash` | shfmt format; shellcheck lint | None |
|
|
98
|
+
| `.rs` | rustfmt | None |
|
|
99
|
+
|
|
100
|
+
YAML, SCSS, JSONL, and extensions not listed above are unsupported.
|
|
101
101
|
An unsupported-only path reports that nothing was checked and exits
|
|
102
102
|
successfully.
|
|
103
103
|
|
|
@@ -118,12 +118,6 @@ to Ruff's — which has published seventeen minor series, roughly one every six
|
|
|
118
118
|
weeks. If you need a fixed version, install it: an installed tool always wins
|
|
119
119
|
over a fetched one.
|
|
120
120
|
|
|
121
|
-
Biome is the temporary exception, pinned to 2.5.14: from 2.5.15 it panics
|
|
122
|
-
(`path is expected to be under the root`) when the bundled config sits outside
|
|
123
|
-
the repository being checked, which is every project without its own
|
|
124
|
-
`biome.json` ([biomejs/biome#12158](https://github.com/biomejs/biome/issues/12158)).
|
|
125
|
-
The pin goes once upstream fixes it.
|
|
126
|
-
|
|
127
121
|
Set `UV_OFFLINE=1` to forbid fetching. A tool that then cannot be reached fails
|
|
128
122
|
the run rather than passing it.
|
|
129
123
|
|
|
@@ -196,8 +190,8 @@ For Python, add `[tool.ruff]` or `[tool.pyrefly]` to `pyproject.toml`, or use
|
|
|
196
190
|
their native project configurations in place of bundled defaults. Readability
|
|
197
191
|
does not interpret EditorConfig itself; a canonical tool such as Biome may opt
|
|
198
192
|
into it through that tool's native configuration. Neither gofmt nor goimports
|
|
199
|
-
has project settings. The bundled Biome file requires Biome 2.5 or later
|
|
200
|
-
|
|
193
|
+
has project settings. The bundled Biome file requires Biome 2.5 or later, and
|
|
194
|
+
Markdown needs 2.6.
|
|
201
195
|
|
|
202
196
|
Configuration is found per file, in the file's own directory and then its
|
|
203
197
|
ancestors, which is where each canonical tool looks. A package keeping its
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "readability-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0"
|
|
4
4
|
description = "A CLI to lint, format, and type-check code with Google-style defaults, and pull Google style guides in markdown format."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -60,13 +60,13 @@ LANGUAGE_MAP = {
|
|
|
60
60
|
"docguide": "docguide/style.md",
|
|
61
61
|
"markdown": "docguide/style.md",
|
|
62
62
|
"go": "go/guide.md",
|
|
63
|
-
"cpp": "cppguide.
|
|
64
|
-
"c++": "cppguide.
|
|
65
|
-
"java": "javaguide.
|
|
63
|
+
"cpp": "cppguide.md",
|
|
64
|
+
"c++": "cppguide.md",
|
|
65
|
+
"java": "javaguide.md",
|
|
66
66
|
"js": "jsguide.md",
|
|
67
67
|
"javascript": "jsguide.md",
|
|
68
|
-
"ts": "tsguide.
|
|
69
|
-
"typescript": "tsguide.
|
|
68
|
+
"ts": "tsguide.md",
|
|
69
|
+
"typescript": "tsguide.md",
|
|
70
70
|
"html": "htmlcssguide.md",
|
|
71
71
|
"css": "htmlcssguide.md",
|
|
72
72
|
"json": "jsoncguide.md",
|