Skip to content

Commit 94d20f2

Browse files
build: Dropped support for Python 3.9 (#469)
chore: pre-commit autoupdate (#468) updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.0 → v0.15.1](astral-sh/ruff-pre-commit@v0.15.0...v0.15.1) Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b35cb7a commit 94d20f2

File tree

7 files changed

+85
-533
lines changed

7 files changed

+85
-533
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version:
19-
- "3.9"
2019
- "3.10"
2120
- "3.11"
2221
- "3.12"

.pre-commit-config.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ repos:
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
2121
rev: v0.15.1
2222
hooks:
23-
- id: ruff
23+
- id: ruff-check
2424
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
2525
- id: ruff-format
26-
27-
- repo: https://github.com/pycqa/flake8
28-
rev: 7.3.0
29-
hooks:
30-
- id: flake8
31-
additional_dependencies:
32-
- darglint==1.8.1
33-
files: 'meltano/edk/.*'

meltano/edk/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
import os
77
import sys
8-
from typing import Callable
8+
from collections.abc import Callable
99

1010
import structlog
1111

meltano/edk/models.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Various models used to describe extensions."""
22

3-
from typing import List
4-
53
from pydantic import BaseModel
64

75

@@ -10,7 +8,7 @@ class Command(BaseModel):
108

119
name: str
1210
description: str
13-
commands: List[str] = []
11+
commands: list[str] = []
1412
pass_through_cli: bool = False
1513

1614

@@ -19,7 +17,7 @@ class ExtensionCommand(Command):
1917

2018
description: str = "The extension cli"
2119
pass_through_cli: bool = False
22-
commands: List[str] = [
20+
commands: list[str] = [
2321
"describe",
2422
"invoke",
2523
"pre_invoke",
@@ -33,10 +31,10 @@ class InvokerCommand(Command):
3331

3432
description: str = "The pass through invoker cli"
3533
pass_through_cli: bool = True
36-
commands: List[str] = [":splat"]
34+
commands: list[str] = [":splat"]
3735

3836

3937
class Describe(BaseModel):
4038
"""Describes what commands and capabilities the extension provides."""
4139

42-
commands: List[Command]
40+
commands: list[Command]

meltano/edk/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
5+
from typing import TypeAlias
66

7-
ExecArg = Union[str, bytes]
7+
ExecArg: TypeAlias = str | bytes

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "meltano.edk"
33
dynamic = [ "version" ]
44
description = "A framework for building Meltano extensions"
55
authors = [{ name = "Meltano Team and Contributors" }]
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
readme = "README.md"
88
license = "Apache-2.0"
99
maintainers = [{ name = "Meltano Team and Contributors" }]
@@ -16,7 +16,6 @@ classifiers = [
1616
"Intended Audience :: Developers",
1717
"License :: OSI Approved :: Apache Software License",
1818
"Operating System :: OS Independent",
19-
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
@@ -72,7 +71,7 @@ fallback-version = "0.0.0.dev0"
7271
source = "vcs"
7372

7473
[tool.ruff]
75-
target-version = "py38"
74+
line-length = 88
7675

7776
[tool.ruff.lint]
7877
select = [

uv.lock

Lines changed: 75 additions & 511 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)