diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ada647..3170c0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/) +## [6.3.0] 2024-05-22 + +### Changed + +- update ruff + +### Fixed + +- exampe test + + ## [6.2.0] 2024-05-06 ### Added @@ -14,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - coverage report does some advanced exclusion: - https://coverage.readthedocs.io/en/7.5.0/excluding.html#advanced-exclusion -- update dependencies +- update dependencies, esp. ruff ### Security diff --git a/src/cmem_plugin_{{ project_slug }}/example_transform.py b/src/cmem_plugin_{{ project_slug }}/example_transform.py index e561948..a4d2923 100644 --- a/src/cmem_plugin_{{ project_slug }}/example_transform.py +++ b/src/cmem_plugin_{{ project_slug }}/example_transform.py @@ -1,4 +1,5 @@ """lifetime(age) transform plugin module""" + import datetime from collections.abc import Sequence from datetime import date diff --git a/src/cmem_plugin_{{ project_slug }}/example_workflow.py b/src/cmem_plugin_{{ project_slug }}/example_workflow.py index 31d4058..228adf7 100644 --- a/src/cmem_plugin_{{ project_slug }}/example_workflow.py +++ b/src/cmem_plugin_{{ project_slug }}/example_workflow.py @@ -1,4 +1,5 @@ """Random values workflow plugin module""" + import uuid from collections.abc import Sequence from secrets import token_urlsafe diff --git a/src/pyproject.toml.jinja b/src/pyproject.toml.jinja index 3acaa16..fc8f107 100644 --- a/src/pyproject.toml.jinja +++ b/src/pyproject.toml.jinja @@ -32,7 +32,7 @@ pytest-cov = "^4.1.0" pytest-dotenv = "^0.5.2" pytest-html = "^4.1.1" pytest-memray = { version = "^1.6.0", markers = "platform_system != 'Windows'" } -ruff = "^0.1.15" +ruff = "^0.4.4" safety = "^1.10.3" [build-system] diff --git a/src/tests/test_example.py.jinja b/src/tests/test_example.py.jinja index 008cfbf..cb7d2b5 100644 --- a/src/tests/test_example.py.jinja +++ b/src/tests/test_example.py.jinja @@ -1,4 +1,5 @@ """Plugin tests.""" + import io import pytest @@ -60,7 +61,7 @@ def test_transform_execution_with_optional_input() -> None: """Test Lifetime with optional input""" result = Lifetime(start_date="2000-05-22").transform(inputs=[]) for item in result: - assert item == "23" + assert item == "24" def test_transform_execution_with_inputs() -> None: diff --git a/src/tests/utils.py b/src/tests/utils.py index 438fc63..f389888 100644 --- a/src/tests/utils.py +++ b/src/tests/utils.py @@ -1,4 +1,5 @@ """Testing utilities.""" + import os from typing import ClassVar