robotcode-analyze 2.9.0.dev124__tar.gz → 2.9.0.dev186__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.
Files changed (20) hide show
  1. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/PKG-INFO +4 -4
  2. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/pyproject.toml +3 -3
  3. robotcode_analyze-2.9.0.dev186/src/robotcode/analyze/__version__.py +1 -0
  4. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/cache/cli.py +10 -10
  5. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/cli.py +7 -4
  6. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/dump_model.py +1 -1
  7. robotcode_analyze-2.9.0.dev124/src/robotcode/analyze/__version__.py +0 -1
  8. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/.gitignore +0 -0
  9. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/README.md +0 -0
  10. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/__init__.py +0 -0
  11. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/cli.py +0 -0
  12. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/_models.py +0 -0
  13. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/_sarif.py +0 -0
  14. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/code_analyzer.py +0 -0
  15. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/diagnostics_context.py +0 -0
  16. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/language_provider.py +0 -0
  17. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/code/robot_framework_language_provider.py +0 -0
  18. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/config.py +0 -0
  19. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/hooks.py +0 -0
  20. {robotcode_analyze-2.9.0.dev124 → robotcode_analyze-2.9.0.dev186}/src/robotcode/analyze/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: robotcode-analyze
3
- Version: 2.9.0-dev.124
3
+ Version: 2.9.0-dev.186
4
4
  Summary: RobotCode analyze plugin for Robot Framework
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -26,9 +26,9 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
26
26
  Classifier: Topic :: Utilities
27
27
  Classifier: Typing :: Typed
28
28
  Requires-Python: >=3.10
29
- Requires-Dist: robotcode-plugin==2.9.0-dev.124
30
- Requires-Dist: robotcode-robot==2.9.0-dev.124
31
- Requires-Dist: robotcode==2.9.0-dev.124
29
+ Requires-Dist: robotcode-plugin==2.9.0-dev.186
30
+ Requires-Dist: robotcode-robot==2.9.0-dev.186
31
+ Requires-Dist: robotcode==2.9.0-dev.186
32
32
  Requires-Dist: robotframework>=5.0.0
33
33
  Description-Content-Type: text/markdown
34
34
 
@@ -29,9 +29,9 @@ classifiers = [
29
29
  ]
30
30
  dependencies = [
31
31
  "robotframework>=5.0.0",
32
- "robotcode-plugin==2.9.0-dev.124",
33
- "robotcode-robot==2.9.0-dev.124",
34
- "robotcode==2.9.0-dev.124",
32
+ "robotcode-plugin==2.9.0-dev.186",
33
+ "robotcode-robot==2.9.0-dev.186",
34
+ "robotcode==2.9.0-dev.186",
35
35
  ]
36
36
  dynamic = ["version"]
37
37
 
@@ -0,0 +1 @@
1
+ __version__ = "2.9.0-dev.186"
@@ -84,7 +84,7 @@ def _format_bytes(n: int) -> str:
84
84
  def _display_name(entry_name: str) -> str:
85
85
  # Namespace entry names contain a newline separating source path and
86
86
  # document type; keep the table/line output single-line.
87
- return entry_name.replace("\n", " · ")
87
+ return entry_name.replace("\n", ", ")
88
88
 
89
89
 
90
90
  def _entry_matches(entry_name: str, patterns: Tuple[str, ...]) -> bool:
@@ -169,7 +169,7 @@ def cache_info(app: Application, paths: Tuple[Path, ...]) -> None:
169
169
  "section": section.name.lower(),
170
170
  "entries": stats.entry_count,
171
171
  "size": stats.total_blob_bytes,
172
- "size_formatted": _format_bytes(stats.total_blob_bytes) if stats.entry_count else "—",
172
+ "size_formatted": _format_bytes(stats.total_blob_bytes) if stats.entry_count else "-",
173
173
  "created": stats.oldest_created or None,
174
174
  "modified": stats.newest_modified or None,
175
175
  }
@@ -188,7 +188,7 @@ def cache_info(app: Application, paths: Tuple[Path, ...]) -> None:
188
188
  for s in section_data:
189
189
  lines.append(
190
190
  f"| {s['section']} | {s['entries']} | {s['size_formatted']}"
191
- f" | {s['created'] or '—'} | {s['modified'] or '—'} |"
191
+ f" | {s['created'] or '-'} | {s['modified'] or '-'} |"
192
192
  )
193
193
  lines.append(f"| **Total** | **{total_entries}** | **{_format_bytes(total_bytes)}** | | |")
194
194
  app.echo_as_markdown("\n".join(lines))
@@ -199,13 +199,13 @@ def cache_info(app: Application, paths: Tuple[Path, ...]) -> None:
199
199
  app.echo("")
200
200
  header = f" {'Section':<12} {'Entries':>7} {'Size':>10} {'Created':19} {'Modified':19}"
201
201
  app.echo(header)
202
- app.echo(f" {'─' * (len(header) - 2)}")
202
+ app.echo(f" {'-' * (len(header) - 2)}")
203
203
  for s in section_data:
204
204
  app.echo(
205
205
  f" {s['section']:<12} {s['entries']:>7} {s['size_formatted']:>10}"
206
- f" {(s['created'] or '—'):19} {(s['modified'] or '—'):19}"
206
+ f" {(s['created'] or '-'):19} {(s['modified'] or '-'):19}"
207
207
  )
208
- app.echo(f" {'─' * (len(header) - 2)}")
208
+ app.echo(f" {'-' * (len(header) - 2)}")
209
209
  app.echo(f" {'Total':<12} {total_entries:>7} {_format_bytes(total_bytes):>10}")
210
210
  else:
211
211
  app.print_data(
@@ -279,8 +279,8 @@ def cache_list(app: Application, sections: Tuple[str, ...], patterns: Tuple[str,
279
279
  lines.append("|---|---:|---|---|")
280
280
  for entry in entries:
281
281
  size = _format_bytes(entry.meta_bytes + entry.data_bytes)
282
- created = entry.created_at or "—"
283
- modified = entry.modified_at or "—"
282
+ created = entry.created_at or "-"
283
+ modified = entry.modified_at or "-"
284
284
  lines.append(f"| {_display_name(entry.entry_name)} | {size} | {created} | {modified} |")
285
285
  lines.append("")
286
286
  if lines:
@@ -297,8 +297,8 @@ def cache_list(app: Application, sections: Tuple[str, ...], patterns: Tuple[str,
297
297
  app.echo(f"[{section.name.lower()}] ({len(entries)} {'entry' if len(entries) == 1 else 'entries'})")
298
298
  for entry in entries:
299
299
  size = _format_bytes(entry.meta_bytes + entry.data_bytes)
300
- created = entry.created_at or "—"
301
- modified = entry.modified_at or "—"
300
+ created = entry.created_at or "-"
301
+ modified = entry.modified_at or "-"
302
302
  app.echo(
303
303
  f" {_display_name(entry.entry_name)} size={size} created={created} modified={modified}"
304
304
  )
@@ -374,7 +374,7 @@ def _validate_load_library_timeout(ctx: click.Context, param: click.Option, valu
374
374
  callback=_parse_severities,
375
375
  metavar="[error|warn|warning|info|information|hint]",
376
376
  help="Only report diagnostics of these severities. Repeatable and comma-separated. "
377
- "Filtered-out severities are ignored entirely — they don't appear in the output, the summary or the exit code. "
377
+ "Filtered-out severities are ignored entirely: they don't appear in the output, the summary or the exit code. "
378
378
  "When omitted, all severities are reported.",
379
379
  )
380
380
  @click.option(
@@ -650,18 +650,21 @@ def code(
650
650
  app.echo(statistics_str)
651
651
  elif resolved_format == "sarif":
652
652
  text = as_json(
653
- build_sarif_log(folder_entries, sorted_documents, root_folder, full_paths, __version__), indent=True
653
+ build_sarif_log(folder_entries, sorted_documents, root_folder, full_paths, __version__),
654
+ indent=True,
655
+ ensure_ascii=True,
654
656
  )
655
657
  _write_or_echo(app, text, output_file)
656
658
  elif resolved_format == "github":
657
659
  _write_or_echo(app, "\n".join(build_github_annotations(folder_entries, sorted_documents)), output_file)
658
660
  elif resolved_format == "gitlab":
659
661
  report = build_gitlab_report(folder_entries, sorted_documents)
660
- _write_or_echo(app, as_json(report, indent=True), output_file)
662
+ _write_or_echo(app, as_json(report, indent=True, ensure_ascii=True), output_file)
661
663
  elif output_file is not None:
662
664
  # json / json-indent written to a file (always plain, no color/pager).
663
665
  result = _build_analysis_result(folder_entries, sorted_documents, summary)
664
- _write_or_echo(app, as_json(result, indent=resolved_format == "json-indent"), output_file)
666
+ text = as_json(result, indent=resolved_format == "json-indent", ensure_ascii=True)
667
+ _write_or_echo(app, text, output_file)
665
668
  else:
666
669
  # json / json-indent / toml on stdout via the shared renderer (keeps color/paging).
667
670
  app.print_data(
@@ -149,7 +149,7 @@ def dump_model(
149
149
  workspace_root=analyzer.root_folder,
150
150
  source=str(document.uri.to_path()),
151
151
  )
152
- text = json.dumps(dump, indent=2, ensure_ascii=False)
152
+ text = json.dumps(dump, indent=2, ensure_ascii=True)
153
153
 
154
154
  if output is not None:
155
155
  output.write_text(text + "\n", encoding="utf-8")
@@ -1 +0,0 @@
1
- __version__ = "2.9.0-dev.124"