From 2ca1165001b6dc4ac3223106025d61ce94c9b795 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 2 Sep 2025 16:02:22 +0300 Subject: [PATCH 1/2] Fix mypy --- deadcode/visitor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deadcode/visitor/utils.py b/deadcode/visitor/utils.py index 899f93f..53c07b2 100644 --- a/deadcode/visitor/utils.py +++ b/deadcode/visitor/utils.py @@ -58,7 +58,7 @@ def get_decorator_name(decorator: Union[ast.Call, ast.Attribute]) -> str: while isinstance(decorator, ast.Attribute): parts.append(decorator.attr) decorator = decorator.value # type: ignore - parts.append(str(id(decorator))) # type: ignore + parts.append(str(id(decorator))) return '@' + '.'.join(reversed(parts)) From 4f78cbea1455f015a12de72ee9a9f932f8f7af61 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 2 Sep 2025 16:05:05 +0300 Subject: [PATCH 2/2] Allow running CI on forks --- .github/workflows/check-deadcode-on-python310.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/check-deadcode-on-python310.yml b/.github/workflows/check-deadcode-on-python310.yml index f889b0f..f4c4c31 100644 --- a/.github/workflows/check-deadcode-on-python310.yml +++ b/.github/workflows/check-deadcode-on-python310.yml @@ -3,11 +3,7 @@ name: Checks deadcode package with Python3.10 -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] +on: [push, pull_request, workflow_dispatch] permissions: contents: read