From f89b7d20f2b59c69d1dbac455e162206b126ce85 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 00:16:00 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/rbubley/mirrors-prettier: 39e2973981e6d2f9b6c543b0086a2d2393abdc89 → ef4a397f916211b4a39ccf9d3d9cbb6562157251](https://github.com/rbubley/mirrors-prettier/compare/39e2973981e6d2f9b6c543b0086a2d2393abdc89...ef4a397f916211b4a39ccf9d3d9cbb6562157251) - [github.com/astral-sh/ruff-pre-commit: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 → f12be1ebaa5351c1fc76472de98db2c3446c8253](https://github.com/astral-sh/ruff-pre-commit/compare/c59bba8fb259db0fec2bbb77ad8ba51ea7341b56...f12be1ebaa5351c1fc76472de98db2c3446c8253) - [github.com/codespell-project/codespell: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a → 57b21406f092110c18776e39b0bda50d37c945c8](https://github.com/codespell-project/codespell/compare/2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a...57b21406f092110c18776e39b0bda50d37c945c8) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f1207b..ae50d1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/rbubley/mirrors-prettier - rev: 39e2973981e6d2f9b6c543b0086a2d2393abdc89 # frozen: v3.9.4 + rev: ef4a397f916211b4a39ccf9d3d9cbb6562157251 # frozen: v3.9.9 hooks: - id: prettier types_or: [yaml, toml, markdown, css, scss, javascript, json] @@ -37,14 +37,14 @@ repos: - id: blacken-docs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # frozen: v0.15.20 + rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2 + rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3 hooks: - id: codespell args: ["-w"] From d0a61b709f09423e09c9db0074686d2149b83d50 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 00:22:14 +0000 Subject: [PATCH 2/2] =?UTF-8?q?'[pre-commit.ci=20=F0=9F=A4=96]=20Apply=20c?= =?UTF-8?q?ode=20format=20tools=20to=20PR'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 6 +++--- sync-teams-to-gh.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae50d1a..6114559 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/rbubley/mirrors-prettier - rev: ef4a397f916211b4a39ccf9d3d9cbb6562157251 # frozen: v3.9.9 + rev: ef4a397f916211b4a39ccf9d3d9cbb6562157251 # frozen: v3.9.9 hooks: - id: prettier types_or: [yaml, toml, markdown, css, scss, javascript, json] @@ -37,14 +37,14 @@ repos: - id: blacken-docs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10 + rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3 + rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3 hooks: - id: codespell args: ["-w"] diff --git a/sync-teams-to-gh.py b/sync-teams-to-gh.py index 72da470..a1b0dc2 100644 --- a/sync-teams-to-gh.py +++ b/sync-teams-to-gh.py @@ -2,15 +2,15 @@ Requires classic token with permissions "Repo" and "Admin" """ -import yaml -import requests import argparse -import os -import json import functools -import sys +import json +import os import re +import sys +import requests +import yaml api = "https://api.github.com"