Skip to content

Commit

Permalink
bump: version 1.6.0 → 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Aug 8, 2023
1 parent 8001914 commit b03e473
Show file tree
Hide file tree
Showing 12 changed files with 185 additions and 178 deletions.
96 changes: 48 additions & 48 deletions .calcipy_packaging.lock
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@
"version": "6.7.0"
},
"commitizen": {
"datetime": "2023-07-29T11:26:38.561256+00:00",
"datetime": "2023-08-01T01:51:19.892175+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-29T11:26:38.561256+00:00",
"latest_version": "3.5.4",
"latest_datetime": "2023-08-01T01:51:19.892175+00:00",
"latest_version": "3.6.0",
"name": "commitizen",
"version": "3.5.4"
"version": "3.6.0"
},
"corallium": {
"datetime": "2023-06-21T12:44:26.492033+00:00",
Expand Down Expand Up @@ -536,12 +536,12 @@
"version": "3.1.2"
},
"jsonschema": {
"datetime": "2023-07-18T09:03:39.073894+00:00",
"datetime": "2023-08-02T19:14:08.892533+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-18T09:03:39.073894+00:00",
"latest_version": "4.18.4",
"latest_datetime": "2023-08-02T19:14:08.892533+00:00",
"latest_version": "4.18.6",
"name": "jsonschema",
"version": "4.18.4"
"version": "4.18.6"
},
"jsonschema-specifications": {
"datetime": "2023-07-18T15:25:45.245921+00:00",
Expand Down Expand Up @@ -608,20 +608,20 @@
"version": "1.3.4"
},
"mkdocs": {
"datetime": "2023-07-27T22:43:45.756915+00:00",
"datetime": "2023-08-02T14:53:47.130452+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-27T22:43:45.756915+00:00",
"latest_version": "1.5.1",
"latest_datetime": "2023-08-02T14:53:47.130452+00:00",
"latest_version": "1.5.2",
"name": "mkdocs",
"version": "1.5.1"
"version": "1.5.2"
},
"mkdocs-autorefs": {
"datetime": "2022-03-07T16:43:47.394684+00:00",
"datetime": "2023-08-02T19:40:47.684022+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2022-03-07T16:43:47.394684+00:00",
"latest_version": "0.4.1",
"latest_datetime": "2023-08-02T19:40:47.684022+00:00",
"latest_version": "0.5.0",
"name": "mkdocs-autorefs",
"version": "0.4.1"
"version": "0.5.0"
},
"mkdocs-build-plantuml-plugin": {
"datetime": "2022-06-13T18:34:42.380890+00:00",
Expand All @@ -648,12 +648,12 @@
"version": "1.2.0"
},
"mkdocs-include-markdown-plugin": {
"datetime": "2023-03-10T00:10:35.663455+00:00",
"datetime": "2023-08-04T04:13:55.286062+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-03-10T00:10:35.663455+00:00",
"latest_version": "4.0.4",
"latest_datetime": "2023-08-04T04:13:55.286062+00:00",
"latest_version": "5.1.0",
"name": "mkdocs-include-markdown-plugin",
"version": "4.0.4"
"version": "5.1.0"
},
"mkdocs-literate-nav": {
"datetime": "2023-01-06T13:47:54.586997+00:00",
Expand Down Expand Up @@ -752,12 +752,12 @@
"version": "1.0.3"
},
"numpy": {
"datetime": "2023-07-08T21:38:33.449846+00:00",
"datetime": "2023-07-31T14:50:49.761194+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-08T21:38:33.449846+00:00",
"latest_version": "1.25.1",
"latest_datetime": "2023-07-31T14:50:49.761194+00:00",
"latest_version": "1.25.2",
"name": "numpy",
"version": "1.25.1"
"version": "1.25.2"
},
"packaging": {
"datetime": "2023-04-12T16:11:09.290380+00:00",
Expand Down Expand Up @@ -904,12 +904,12 @@
"version": "10.1"
},
"pyparsing": {
"datetime": "2023-06-18T22:24:34.295918+00:00",
"datetime": "2023-07-30T15:06:59.829996+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-06-18T22:24:34.295918+00:00",
"latest_version": "3.1.0",
"latest_datetime": "2023-07-30T15:06:59.829996+00:00",
"latest_version": "3.1.1",
"name": "pyparsing",
"version": "3.1.0"
"version": "3.1.1"
},
"pyrate-limiter": {
"datetime": "2023-02-26T16:03:06.447668+00:00",
Expand Down Expand Up @@ -952,12 +952,12 @@
"version": "3.13.0"
},
"pytest-recording": {
"datetime": "2023-02-16T15:16:33.119931+00:00",
"datetime": "2023-07-31T23:38:11.015496+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-02-16T15:16:33.119931+00:00",
"latest_version": "0.12.2",
"latest_datetime": "2023-07-31T23:38:11.015496+00:00",
"latest_version": "0.13.0",
"name": "pytest-recording",
"version": "0.12.2"
"version": "0.13.0"
},
"pytest-subprocess": {
"datetime": "2023-01-28T10:18:40.487837+00:00",
Expand Down Expand Up @@ -1032,12 +1032,12 @@
"version": "1.10.0"
},
"referencing": {
"datetime": "2023-07-18T14:35:16.719050+00:00",
"datetime": "2023-08-05T08:11:49.795483+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-18T14:35:16.719050+00:00",
"latest_version": "0.30.0",
"latest_datetime": "2023-08-05T08:11:49.795483+00:00",
"latest_version": "0.30.2",
"name": "referencing",
"version": "0.30.0"
"version": "0.30.2"
},
"regex": {
"datetime": "2023-06-03T17:45:21.046779+00:00",
Expand All @@ -1056,12 +1056,12 @@
"version": "2.31.0"
},
"rich": {
"datetime": "2023-07-29T16:18:36.549086+00:00",
"datetime": "2023-08-01T15:46:49.961937+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-29T16:18:36.549086+00:00",
"latest_version": "13.5.0",
"latest_datetime": "2023-08-01T15:46:49.961937+00:00",
"latest_version": "13.5.2",
"name": "rich",
"version": "13.5.0"
"version": "13.5.2"
},
"rpds-py": {
"datetime": "2023-07-18T14:11:54.624708+00:00",
Expand All @@ -1088,12 +1088,12 @@
"version": "0.2.7"
},
"ruff": {
"datetime": "2023-07-22T03:49:52.613475+00:00",
"datetime": "2023-08-01T13:55:27.898259+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-22T03:49:52.613475+00:00",
"latest_version": "0.0.280",
"latest_datetime": "2023-08-01T13:55:27.898259+00:00",
"latest_version": "0.0.282",
"name": "ruff",
"version": "0.0.280"
"version": "0.0.282"
},
"semgrep": {
"datetime": "2023-07-29T00:22:57.769743+00:00",
Expand Down Expand Up @@ -1272,12 +1272,12 @@
"version": "1.26.16"
},
"vcrpy": {
"datetime": "2023-06-26T21:28:39.552860+00:00",
"datetime": "2023-07-31T03:19:30.128986+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-06-26T21:28:39.552860+00:00",
"latest_version": "5.0.0",
"latest_datetime": "2023-07-31T03:19:30.128986+00:00",
"latest_version": "5.1.0",
"name": "vcrpy",
"version": "5.0.0"
"version": "5.1.0"
},
"virtualenv": {
"datetime": "2023-07-24T14:47:54.867737+00:00",
Expand Down
2 changes: 1 addition & 1 deletion calcipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from beartype.claw import beartype_this_package
from typing_extensions import Self # noqa: UP035

__version__ = '1.6.0'
__version__ = '1.6.1'
__pkg_name__ = 'calcipy'


Expand Down
6 changes: 0 additions & 6 deletions calcipy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from functools import wraps
from pathlib import Path
from types import ModuleType

from beartype import beartype
from beartype.typing import Any, Callable, Dict, List, Optional
from corallium.log import configure_logger, logger
Expand Down Expand Up @@ -133,7 +132,6 @@ def _configure_logger(ctx: Context) -> None:
configure_logger(log_level=log_level)


@beartype
def _run_task(func: Any, ctx: Context, *args: Any, show_task_info: bool, **kwargs: Any) -> Any:
"""Run the task function with optional logging."""
if show_task_info:
Expand All @@ -150,7 +148,6 @@ def _run_task(func: Any, ctx: Context, *args: Any, show_task_info: bool, **kwarg
return result


@beartype
def _inner_runner(*, func: Any, ctx: Context, show_task_info: bool, args: Any, kwargs: Any) -> Any:
try:
ctx.config.gto # noqa: B018
Expand All @@ -171,14 +168,11 @@ def _inner_runner(*, func: Any, ctx: Context, show_task_info: bool, args: Any, k


# TODO: Can I type this function with fewer Any's?
@beartype
def task(*task_args: Any, show_task_info: bool = True, **task_kwargs: Any) -> Callable[[Any], Any]:
"""Wrapper to accept arguments for an invoke task."""
@beartype
def wrapper(func: Any) -> Any: # noqa: ANN001
"""Wraps the decorated task."""
@invoke_task(*task_args, **task_kwargs)
@beartype
@wraps(func)
def inner(ctx: Context, *args: Any, **kwargs: Any) -> Any:
"""Wrap the task with settings configured in `gto` for working_dir and logging."""
Expand Down
2 changes: 1 addition & 1 deletion calcipy/tasks/all_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def with_progress(
call(lint.pre_commit, no_update=True), # pyright: ignore[reportGeneralTypeIssues]
lint.security,
tags.collect_code_tags,
cl.write,
# cl.write,
pack.lock,
test.coverage,
doc.build,
Expand Down
40 changes: 20 additions & 20 deletions calcipy/tasks/cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@
"""Prerelease Suffix Type."""


@task()
def write(ctx: Context) -> None:
"""Write a Changelog file with the raw Git history.
# @task()
# def write(ctx: Context) -> None:
# """Write a Changelog file with the raw Git history.

Resources:
# Resources:

- https://keepachangelog.com/en/1.0.0/
- https://www.conventionalcommits.org/en/v1.0.0/
- https://writingfordevelopers.substack.com/p/how-to-write-a-commit-message
- https://chris.beams.io/posts/git-commit/
- https://semver.org/
- https://calver.org/
# - https://keepachangelog.com/en/1.0.0/
# - https://www.conventionalcommits.org/en/v1.0.0/
# - https://writingfordevelopers.substack.com/p/how-to-write-a-commit-message
# - https://chris.beams.io/posts/git-commit/
# - https://semver.org/
# - https://calver.org/

Returns:
List[DoitAction]: doit actions
# Returns:
# List[DoitAction]: doit actions

"""
run(ctx, f'{python_dir()}/cz changelog')
path_cl = get_project_path() / 'CHANGELOG.md'
if not path_cl.is_file():
msg = f'Could not locate the changelog at: {path_cl}'
raise FileNotFoundError(msg)
path_cl.replace(get_doc_subdir() / path_cl.name)
# """
# run(ctx, f'{python_dir()}/cz changelog')
# path_cl = get_project_path() / 'CHANGELOG.md'
# if not path_cl.is_file():
# msg = f'Could not locate the changelog at: {path_cl}'
# raise FileNotFoundError(msg)
# path_cl.replace(get_doc_subdir() / path_cl.name)


@beartype
Expand All @@ -53,7 +53,7 @@ def bumpz(ctx: Context, *, suffix: SuffixT = None) -> None:


@task(
pre=[write],
# pre=[write],
help={
'suffix': 'Specify prerelease suffix for version bump (alpha, beta, rc)',
},
Expand Down
6 changes: 6 additions & 0 deletions docs/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Unreleased

### Refactor

- update copier for a more generic environment variable

## 1.6.0 (2023-07-23)

### Feat
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/CODE_TAG_SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
| TODO | Can I type this function with fewer Any's? | 2023-05-17 | [calcipy/cli.py:173](https://github.com/KyleKing/calcipy/blame/efaaa73193296e1fa7e82f1e9a40253c5a26da2d/calcipy/cli.py#L173) |
| TODO | Consider adding a configuration item for ignore_patterns | 2023-02-19 | [calcipy/file_search.py:82](https://github.com/KyleKing/calcipy/blame/e6bc0415e3bf6a6df5a9d808ce0e89d0f2c5df9e/calcipy/file_search.py#L82) |
| TODO | Look into running tasks from within other tasks to support '--continue' and more readable logs --> | 2023-02-19 | [docs/docs/MIGRATION.md:112](https://github.com/KyleKing/calcipy/blame/d95eb85ab7f6d45459ed7b3ff2dc99ae3c92fa61/docs/docs/MIGRATION.md#L42) |
| FIXME | Global beartype causes invoke failures | 2023-08-05 | [tests/__init__.py:3](https://github.com/KyleKing/calcipy/blame/main/tests/__init__.py#L3) |
| TODO | Capture logging output and check... | 2023-02-19 | [tests/check_for_stale_packages/test_check_for_stale_packages.py:64](https://github.com/KyleKing/calcipy/blame/a8b69e7b04d9b15eabff8897f2de7703898c2afc/tests/check_for_stale_packages/test_check_for_stale_packages.py#L63) |
| TODO | Capture logging output and check... | 2023-02-19 | [tests/check_for_stale_packages/test_check_for_stale_packages.py:88](https://github.com/KyleKing/calcipy/blame/3f42ad855eb7024ff48af35d496633a87d4a14ac/tests/check_for_stale_packages/test_check_for_stale_packages.py#L26) |
| TODO | Is there an easier way to maintain pytest parameter IDs? | 2023-02-17 | [tests/tasks/test_test.py:14](https://github.com/KyleKing/calcipy/blame/785b9d1c3afda6fc5a2e46f2bc7d41ed2614da09/tests/tasks/test_test.py#L11) |
| PLANNED | Convert to hypothesis test! | 2023-02-19 | [tests/test_dot_dict.py:9](https://github.com/KyleKing/calcipy/blame/3f42ad855eb7024ff48af35d496633a87d4a14ac/tests/test_dot_dict.py#L9) |

Found code tags for TODO (7), PLANNED (1)
Found code tags for FIXME (1), TODO (7), PLANNED (1)

<!-- calcipy_skip_tags -->
6 changes: 3 additions & 3 deletions docs/docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ poetry config pypi-token.pypi ...
| `calcipy/check_for_stale_packages/_check_for_stale_packages.py` | 114 | 8 | 3 | 91.1% |
| `calcipy/cli.py` | 93 | 22 | 13 | 70.2% |
| `calcipy/code_tag_collector/__init__.py` | 4 | 2 | 0 | 50.0% |
| `calcipy/code_tag_collector/_collector.py` | 143 | 2 | 0 | 96.8% |
| `calcipy/code_tag_collector/_collector.py` | 143 | 1 | 0 | 98.6% |
| `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% |
Expand All @@ -78,7 +78,7 @@ poetry config pypi-token.pypi ...
| `calcipy/tasks/tags.py` | 15 | 0 | 0 | 100.0% |
| `calcipy/tasks/test.py` | 45 | 1 | 2 | 95.4% |
| `calcipy/tasks/types.py` | 17 | 0 | 0 | 100.0% |
| **Totals** | 1071 | 103 | 89 | 89.3% |
| **Totals** | 1071 | 102 | 89 | 89.6% |

Generated on: 2023-07-30
Generated on: 2023-08-05
<!-- {cte} -->
Loading

0 comments on commit b03e473

Please sign in to comment.