diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a14515648..9aa5f65864 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: - --py37-plus - --keep-runtime-typing - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.12.0 hooks: - id: ruff args: @@ -74,7 +74,7 @@ repos: alias: black additional_dependencies: [black>=22.10.0] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.15.0" + rev: "v1.16.1" hooks: - id: mypy diff --git a/cosmos/operators/local.py b/cosmos/operators/local.py index 1ace45a596..fcb3b2d878 100644 --- a/cosmos/operators/local.py +++ b/cosmos/operators/local.py @@ -25,7 +25,7 @@ except ImportError: from airflow.utils.context import Context # type: ignore[attr-defined] from airflow.version import version as airflow_version -from attr import define +from attrs import define from packaging.version import Version from cosmos import cache, settings