From 8ebc5e79e9c251db2df779b15f2d53d7e6d68087 Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Thu, 12 Jun 2025 12:26:53 -0700 Subject: [PATCH 1/2] ci: add a python lint workflow Linter: https://github.com/psf/black Signed-off-by: Ihor Solodrai --- .github/workflows/lint.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..b371197 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,10 @@ +name: Lint + +on: [pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable From 494a3b192e2ecae7d83da93aee4bb65acb087461 Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Thu, 12 Jun 2025 12:42:03 -0700 Subject: [PATCH 2/2] lint: don't check format of branch_worker constants Signed-off-by: Ihor Solodrai --- kernel_patches_daemon/branch_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_patches_daemon/branch_worker.py b/kernel_patches_daemon/branch_worker.py index fa0ace5..7574911 100644 --- a/kernel_patches_daemon/branch_worker.py +++ b/kernel_patches_daemon/branch_worker.py @@ -90,7 +90,7 @@ MERGE_CONFLICT_LABEL = "merge-conflict" UPSTREAM_REMOTE_NAME = "upstream" - +# fmt: off EMAIL_TEMPLATE_BASE: Final[str] = """\ Dear patch submitter, @@ -123,7 +123,7 @@ {inline_logs}\ """ - +# fmt: on # Context used to format email notification body EmailBodyContext = namedtuple(