Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
max-parallel: 7
matrix:
platform: ["ubuntu-latest"]
tox-env: ["py310", "py311", "py312", "py313", "py314"]
tox-env: ["py311", "py312", "py313", "py314"]
include:
- platform: macos-15
tox-env: "py313"
Expand Down
12 changes: 2 additions & 10 deletions gokart/mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from __future__ import annotations

import re
import sys
import warnings
from collections.abc import Callable, Iterator
from dataclasses import dataclass
Expand Down Expand Up @@ -75,17 +74,10 @@ class TaskOnKartPluginOptions:

@classmethod
def _parse_toml(cls, config_file: str) -> dict[str, Any]:
if sys.version_info >= (3, 11):
import tomllib as toml_
else:
try:
import tomli as toml_
except ImportError: # pragma: no cover
warnings.warn('install tomli to parse pyproject.toml under Python 3.10', stacklevel=1)
return {}
import tomllib

with open(config_file, 'rb') as f:
return toml_.load(f)
return tomllib.load(f)

@classmethod
def parse_config_file(cls, config_file: str) -> TaskOnKartPluginOptions:
Expand Down
8 changes: 1 addition & 7 deletions gokart/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
import bz2
import datetime
import json
import sys
from collections.abc import Callable, Iterable
from logging import getLogger
from typing import Any, Generic, Protocol, TypedDict, TypeVar

if sys.version_info >= (3, 11):
from typing import Unpack
else:
from typing_extensions import Unpack
from typing import Any, Generic, Protocol, TypedDict, TypeVar, Unpack
from warnings import warn

import luigi
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10, <4"
requires-python = ">=3.11, <4"
dependencies = [
"luigi>=3.8.1", # 3.8.1+ required for ConfigPath TypedDict and OptionalParameterMixin generics
"slack-sdk",
Expand All @@ -29,7 +29,6 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down
9 changes: 1 addition & 8 deletions test/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@
import io
import logging
import os
import sys
import unittest
from copy import copy
from typing import Any

if sys.version_info >= (3, 11):
from typing import assert_type
else:
from typing_extensions import assert_type

from typing import Any, assert_type
from unittest.mock import patch

import luigi
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{310,311,312,313,314},ruff,mypy
envlist = py{311,312,313,314},ruff,mypy
skipsdist = True

[testenv]
Expand Down
246 changes: 15 additions & 231 deletions uv.lock

Large diffs are not rendered by default.

Loading