diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2afdfd3..a3173b81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,14 @@ on: branches: - main - develop + - "[0-9]+.[0-9]+.x" tags: - "[0-9]+.[0-9]+.[0-9]+" pull_request: branches: - main - develop + - "[0-9]+.[0-9]+.x" merge_group: concurrency: diff --git a/src/codemodder/codemods/api.py b/src/codemodder/codemods/api.py index f09910ea..c375dc41 100644 --- a/src/codemodder/codemods/api.py +++ b/src/codemodder/codemods/api.py @@ -8,6 +8,7 @@ Metadata, Reference, ReviewGuidance, + ToolMetadata, ) from codemodder.codemods.libcst_transformer import ( LibcstResultTransformer, diff --git a/src/codemodder/codemods/base_codemod.py b/src/codemodder/codemods/base_codemod.py index 57f057f3..b3229ca9 100644 --- a/src/codemodder/codemods/base_codemod.py +++ b/src/codemodder/codemods/base_codemod.py @@ -41,7 +41,7 @@ class ToolMetadata: name: str rule_id: str rule_name: str - rule_url: str + rule_url: str | None = None class BaseCodemod(metaclass=ABCMeta):