[libcxx-commits] [libcxx] [libc++] Avoid duplicate LWGXYZ prefixes in status tables (PR #148874)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 15 08:51:59 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r HEAD~1...HEAD libcxx/utils/synchronize_csv_status_files.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- synchronize_csv_status_files.py	2025-07-15 15:41:40.000000 +0000
+++ synchronize_csv_status_files.py	2025-07-15 15:51:34.690656 +0000
@@ -229,11 +229,11 @@
         notes = extract_between_markers(issue_description, 'BEGIN-RST-NOTES', 'END-RST-NOTES')
         notes = notes.strip() if notes is not None else notes
 
         return PaperInfo(
             paper_number=paper,
-            paper_name=issue['title'].removeprefix(paper + ': '),
+            paper_name=issue["title"].removeprefix(paper + ": "),
             status=PaperStatus.from_github_issue(issue),
             meeting=issue.get('meeting Voted', None),
             first_released_version=None, # TODO
             notes=notes,
             original=issue,
@@ -267,19 +267,19 @@
         result = copy.deepcopy(paper)
     return result
 
 def load_csv(file: pathlib.Path) -> List[Tuple]:
     rows = []
-    with open(file, newline='', encoding='utf-8') as f:
-        reader = csv.reader(f, delimiter=',')
+    with open(file, newline="", encoding="utf-8") as f:
+        reader = csv.reader(f, delimiter=",")
         for row in reader:
             rows.append(row)
     return rows
 
 def write_csv(output: pathlib.Path, rows: List[Tuple]):
-    with open(output, 'w', newline='', encoding='utf-8') as f:
-        writer = csv.writer(f, quoting=csv.QUOTE_ALL, lineterminator='\n')
+    with open(output, "w", newline="", encoding="utf-8") as f:
+        writer = csv.writer(f, quoting=csv.QUOTE_ALL, lineterminator="\n")
         for row in rows:
             writer.writerow(row)
 
 def create_github_issue(paper: PaperInfo, labels: List[str]) -> None:
     """
@@ -415,11 +415,11 @@
         return
 
     # Load all the Github issues tracking papers from Github.
     if args.load_github_from:
         print(f"Loading all issues from {args.load_github_from}")
-        with open(args.load_github_from, 'r', encoding='utf-8') as f:
+        with open(args.load_github_from, "r", encoding="utf-8") as f:
             project_info = json.load(f)
     else:
         print("Loading all issues from Github")
         gh_command_line = ['gh', 'project', 'item-list', LIBCXX_CONFORMANCE_PROJECT, '--owner', 'llvm', '--format', 'json', '--limit', '9999999']
         project_info = json.loads(subprocess.check_output(gh_command_line))

``````````

</details>


https://github.com/llvm/llvm-project/pull/148874


More information about the libcxx-commits mailing list