From 7448ddb1dff9c89e0fd965c7f7a08b1d4b3bb746 Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Wed, 22 May 2024 08:26:57 +0200 Subject: [PATCH 1/3] temp fix test --- src/tests/test_example.py.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_example.py.jinja b/src/tests/test_example.py.jinja index 008cfbf..c6c849c 100644 --- a/src/tests/test_example.py.jinja +++ b/src/tests/test_example.py.jinja @@ -60,7 +60,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: From 13aad131b4e46e6f0df0d84966e5def590281a0f Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Wed, 22 May 2024 08:30:44 +0200 Subject: [PATCH 2/3] update ruff --- CHANGELOG.md | 2 +- src/cmem_plugin_{{ project_slug }}/example_transform.py | 1 + src/cmem_plugin_{{ project_slug }}/example_workflow.py | 1 + src/pyproject.toml.jinja | 2 +- src/tests/test_example.py.jinja | 1 + src/tests/utils.py | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58f8ab2..61065f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,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 c6c849c..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 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 From 882694a3f4c21848cbb821626612a5357ed848d1 Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Wed, 22 May 2024 11:47:08 +0200 Subject: [PATCH 3/3] change log --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76429b6..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