From 86236bf5827c47a60df0591d7a0b6cf3425ace03 Mon Sep 17 00:00:00 2001 From: Kyle King Date: Sun, 10 Dec 2023 13:27:32 -0500 Subject: [PATCH] ci: fix type failures --- calcipy/tasks/all_tasks.py | 17 ++++++++++------- docs/docs/CHANGELOG.md | 4 ++++ docs/docs/DEVELOPER_GUIDE.md | 4 ++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/calcipy/tasks/all_tasks.py b/calcipy/tasks/all_tasks.py index c1824f2c..f17d0616 100644 --- a/calcipy/tasks/all_tasks.py +++ b/calcipy/tasks/all_tasks.py @@ -63,11 +63,14 @@ def with_progress(items: Any, offset: int = 0) -> TaskList: """ task_items = [_build_task(_t) for _t in items] message = 'Running tasks: ' + ', '.join([str(_t.__name__) for _t in task_items]) - tasks: TaskList = [summary.with_kwargs(message=message)] + tasks: TaskList = [summary.with_kwargs(message=message)] # pyright: ignore[reportFunctionMemberAccess] total = len(task_items) + offset for idx, item in enumerate(task_items): - tasks += [progress.with_kwargs(index=idx + offset, total=total), item] + tasks += [ + progress.with_kwargs(index=idx + offset, total=total), # pyright: ignore[reportFunctionMemberAccess] + item, + ] return tasks @@ -75,8 +78,8 @@ def with_progress(items: Any, offset: int = 0) -> TaskList: lint.fix, types.mypy, types.pyright, - nox.noxfile.with_kwargs(session='tests'), # pyright: ignore[reportGeneralTypeIssues] - lint.pre_commit.with_kwargs(no_update=True), # pyright: ignore[reportGeneralTypeIssues] + nox.noxfile.with_kwargs(session='tests'), # pyright: ignore[reportFunctionMemberAccess] + lint.pre_commit.with_kwargs(no_update=True), # pyright: ignore[reportFunctionMemberAccess] lint.security, tags.collect_code_tags, cl.write, @@ -99,15 +102,15 @@ def main(_ctx: Context) -> None: """Main task pipeline.""" -@task(post=with_progress(_OTHER_TASKS)) # pyright: ignore[reportGeneralTypeIssues] +@task(post=with_progress(_OTHER_TASKS)) def other(_ctx: Context) -> None: """Run tasks that are otherwise not exercised in main.""" @task( - help=cl.bump.help, + help=cl.bump.help, # pyright: ignore[reportFunctionMemberAccess] post=with_progress( - [ # pyright: ignore[reportGeneralTypeIssues] + [ pack.lock, doc.build, doc.deploy, diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index becced98..c155fce2 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -1,5 +1,9 @@ ## Unreleased +### Fix + +- create the code tag summary directory if it doesn't already exist + ## 2.0.3 (2023-11-21) ### Fix diff --git a/docs/docs/DEVELOPER_GUIDE.md b/docs/docs/DEVELOPER_GUIDE.md index 1afa0a78..18b54f63 100644 --- a/docs/docs/DEVELOPER_GUIDE.md +++ b/docs/docs/DEVELOPER_GUIDE.md @@ -53,7 +53,7 @@ poetry config pypi-token.pypi ... | `calcipy/check_for_stale_packages/_check_for_stale_packages.py` | 117 | 8 | 3 | 87.2% | | `calcipy/cli.py` | 37 | 1 | 36 | 93.3% | | `calcipy/code_tag_collector/__init__.py` | 4 | 2 | 0 | 50.0% | -| `calcipy/code_tag_collector/_collector.py` | 142 | 2 | 0 | 94.0% | +| `calcipy/code_tag_collector/_collector.py` | 143 | 2 | 0 | 94.0% | | `calcipy/dot_dict/__init__.py` | 4 | 2 | 0 | 50.0% | | `calcipy/dot_dict/_dot_dict.py` | 8 | 0 | 0 | 100.0% | | `calcipy/experiments/__init__.py` | 0 | 0 | 0 | 100.0% | @@ -80,7 +80,7 @@ poetry config pypi-token.pypi ... | `calcipy/tasks/tags.py` | 15 | 0 | 0 | 100.0% | | `calcipy/tasks/test.py` | 45 | 1 | 2 | 89.2% | | `calcipy/tasks/types.py` | 17 | 0 | 0 | 91.3% | -| **Totals** | 1034 | 66 | 182 | 87.3% | +| **Totals** | 1035 | 66 | 182 | 87.3% | Generated on: 2023-12-10