From 13aad131b4e46e6f0df0d84966e5def590281a0f Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Wed, 22 May 2024 08:30:44 +0200 Subject: [PATCH] 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