plain.code 0.12.0__tar.gz → 0.13.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.
- {plain_code-0.12.0 → plain_code-0.13.0}/PKG-INFO +1 -1
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/CHANGELOG.md +12 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/biome_defaults.json +2 -1
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/cli.py +11 -35
- {plain_code-0.12.0 → plain_code-0.13.0}/pyproject.toml +1 -1
- {plain_code-0.12.0 → plain_code-0.13.0}/.gitignore +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/LICENSE +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/README.md +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/README.md +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/__init__.py +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/biome.py +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/entrypoints.py +0 -0
- {plain_code-0.12.0 → plain_code-0.13.0}/plain/code/ruff_defaults.toml +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# plain-code changelog
|
|
2
2
|
|
|
3
|
+
## [0.13.0](https://github.com/dropseed/plain/releases/plain-code@0.13.0) (2025-12-01)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Simplified CLI output with cleaner single-line status messages for all check and fix operations ([b09edfd](https://github.com/dropseed/plain/commit/b09edfd))
|
|
8
|
+
- The ty type checker now runs with `--no-progress` for cleaner output ([5b70918](https://github.com/dropseed/plain/commit/5b70918))
|
|
9
|
+
- Biome now ignores `.pytest_cache` directories by default ([f9963d0](https://github.com/dropseed/plain/commit/f9963d0))
|
|
10
|
+
|
|
11
|
+
### Upgrade instructions
|
|
12
|
+
|
|
13
|
+
- No changes required
|
|
14
|
+
|
|
3
15
|
## [0.12.0](https://github.com/dropseed/plain/releases/plain-code@0.12.0) (2025-11-24)
|
|
4
16
|
|
|
5
17
|
### What's changed
|
|
@@ -102,22 +102,17 @@ def check(
|
|
|
102
102
|
sys.exit(return_code)
|
|
103
103
|
|
|
104
104
|
if not skip_ruff:
|
|
105
|
-
print_event(
|
|
106
|
-
click.style("Ruff lint:", bold=True) + click.style(" ruff check", dim=True)
|
|
107
|
-
)
|
|
105
|
+
print_event("ruff check...", newline=False)
|
|
108
106
|
result = subprocess.run(["ruff", "check", path, *ruff_args])
|
|
109
107
|
maybe_exit(result.returncode)
|
|
110
108
|
|
|
111
|
-
print_event(
|
|
112
|
-
click.style("Ruff format:", bold=True)
|
|
113
|
-
+ click.style(" ruff format --check", dim=True)
|
|
114
|
-
)
|
|
109
|
+
print_event("ruff format --check...", newline=False)
|
|
115
110
|
result = subprocess.run(["ruff", "format", path, "--check", *ruff_args])
|
|
116
111
|
maybe_exit(result.returncode)
|
|
117
112
|
|
|
118
113
|
if not skip_ty and config.get("ty", {}).get("enabled", True):
|
|
119
|
-
print_event(
|
|
120
|
-
result = subprocess.run(["ty", "check", path])
|
|
114
|
+
print_event("ty check...", newline=False)
|
|
115
|
+
result = subprocess.run(["ty", "check", path, "--no-progress"])
|
|
121
116
|
maybe_exit(result.returncode)
|
|
122
117
|
|
|
123
118
|
if not skip_biome and config.get("biome", {}).get("enabled", True):
|
|
@@ -126,9 +121,7 @@ def check(
|
|
|
126
121
|
if biome.needs_update():
|
|
127
122
|
ctx.invoke(install)
|
|
128
123
|
|
|
129
|
-
print_event(
|
|
130
|
-
click.style("Biome:", bold=True) + click.style(" biome check", dim=True)
|
|
131
|
-
)
|
|
124
|
+
print_event("biome check...", newline=False)
|
|
132
125
|
result = biome.invoke("check", path)
|
|
133
126
|
maybe_exit(result.returncode)
|
|
134
127
|
|
|
@@ -153,32 +146,21 @@ def fix(ctx: click.Context, path: str, unsafe_fixes: bool, add_noqa: bool) -> No
|
|
|
153
146
|
raise click.UsageError("Cannot use both --unsafe-fixes and --add-noqa")
|
|
154
147
|
|
|
155
148
|
if unsafe_fixes:
|
|
156
|
-
print_event(
|
|
157
|
-
click.style("Ruff lint:", bold=True)
|
|
158
|
-
+ click.style(" ruff check --fix --unsafe-fixes", dim=True)
|
|
159
|
-
)
|
|
149
|
+
print_event("ruff check --fix --unsafe-fixes...", newline=False)
|
|
160
150
|
result = subprocess.run(
|
|
161
151
|
["ruff", "check", path, "--fix", "--unsafe-fixes", *ruff_args]
|
|
162
152
|
)
|
|
163
153
|
elif add_noqa:
|
|
164
|
-
print_event(
|
|
165
|
-
click.style("Ruff lint:", bold=True)
|
|
166
|
-
+ click.style(" ruff check --add-noqa", dim=True)
|
|
167
|
-
)
|
|
154
|
+
print_event("ruff check --add-noqa...", newline=False)
|
|
168
155
|
result = subprocess.run(["ruff", "check", path, "--add-noqa", *ruff_args])
|
|
169
156
|
else:
|
|
170
|
-
print_event(
|
|
171
|
-
click.style("Ruff lint:", bold=True)
|
|
172
|
-
+ click.style(" ruff check --fix", dim=True)
|
|
173
|
-
)
|
|
157
|
+
print_event("ruff check --fix...", newline=False)
|
|
174
158
|
result = subprocess.run(["ruff", "check", path, "--fix", *ruff_args])
|
|
175
159
|
|
|
176
160
|
if result.returncode != 0:
|
|
177
161
|
sys.exit(result.returncode)
|
|
178
162
|
|
|
179
|
-
print_event(
|
|
180
|
-
click.style("Ruff format:", bold=True) + click.style(" ruff format", dim=True)
|
|
181
|
-
)
|
|
163
|
+
print_event("ruff format...", newline=False)
|
|
182
164
|
result = subprocess.run(["ruff", "format", path, *ruff_args])
|
|
183
165
|
if result.returncode != 0:
|
|
184
166
|
sys.exit(result.returncode)
|
|
@@ -193,15 +175,9 @@ def fix(ctx: click.Context, path: str, unsafe_fixes: bool, add_noqa: bool) -> No
|
|
|
193
175
|
|
|
194
176
|
if unsafe_fixes:
|
|
195
177
|
args.append("--unsafe")
|
|
196
|
-
print_event(
|
|
197
|
-
click.style("Biome:", bold=True)
|
|
198
|
-
+ click.style(" biome check --write --unsafe", dim=True)
|
|
199
|
-
)
|
|
178
|
+
print_event("biome check --write --unsafe...", newline=False)
|
|
200
179
|
else:
|
|
201
|
-
print_event(
|
|
202
|
-
click.style("Biome:", bold=True)
|
|
203
|
-
+ click.style(" biome check --write", dim=True)
|
|
204
|
-
)
|
|
180
|
+
print_event("biome check --write...", newline=False)
|
|
205
181
|
|
|
206
182
|
result = biome.invoke(*args)
|
|
207
183
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|