Skip to content

Commit a98c888

Browse files
authored
Fix Github report format (#132)
1 parent e3413c5 commit a98c888

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ruff-sync"
3-
version = "0.1.3.dev2"
3+
version = "0.1.3.dev3"
44
description = "Synchronize Ruff linter configuration across projects"
55
keywords = ["ruff", "linter", "config", "synchronize", "python", "linting", "automation", "tomlkit", "pre-commit"]
66
authors = [

src/ruff_sync/formatters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def error(
138138

139139
# Strip emoji/symbols if any for the raw title, or just use a generic title
140140
file_val = self._escape(str(file_path), is_property=True) if file_path else ""
141-
file_arg = f"file={file_val}," if file_path else ""
141+
file_arg = f"file={file_val},line=1," if file_path else ""
142142
title_val = self._escape("Ruff Sync Error", is_property=True)
143143

144144
# The message is technically what we pass after ::
@@ -157,7 +157,7 @@ def warning(
157157
(logger or LOGGER).warning(message)
158158

159159
file_val = self._escape(str(file_path), is_property=True) if file_path else ""
160-
file_arg = f"file={file_val}," if file_path else ""
160+
file_arg = f"file={file_val},line=1," if file_path else ""
161161
title_val = self._escape("Ruff Sync Warning", is_property=True)
162162

163163
clean_msg = message.removeprefix("❌ ").removeprefix("⚠️ ")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)