Skip to content

Commit

Permalink
MAINT: Drop support for Python 3.8 and add explicit support for 3.13.…
Browse files Browse the repository at this point in the history
… Adapt to new ruff and mypy versions
  • Loading branch information
binste committed Feb 6, 2025
1 parent f20d6ea commit 6517631
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: py ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions altair_tiles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__version__ = "0.4.0dev"
__all__ = ["add_tiles", "add_attribution", "create_tiles_chart", "providers"]
__all__ = ["add_attribution", "add_tiles", "create_tiles_chart", "providers"]

import math
from dataclasses import dataclass
Expand Down Expand Up @@ -61,7 +61,7 @@ def add_tiles(
standalone=False,
)

final_chart = tiles + chart # type: ignore # noqa: PGH003
final_chart = tiles + chart
if attribution:
final_chart = add_attribution( # type: ignore[assignment]
chart=final_chart, provider=provider, attribution=attribution
Expand Down
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ dependencies = ["altair", "xyzservices", "mercantile"]
description = "altair_tiles"
readme = "README.md"
keywords = ["altair", "basemaps", "tiles"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dynamic = ["version"]
license-files = { paths = ["LICENSE"] }
license-files = ["LICENSE"]
classifiers = [
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]

Expand Down Expand Up @@ -87,9 +87,7 @@ build-and-publish = ["clean", "build", "publish"]


[tool.ruff]
target-version = "py38"
line-length = 88
exclude = [".git", "build", "__pycache__"]
exclude = [".git", "build", "__pycache__", "*.ipynb"]

[tool.ruff.lint]
select = [
Expand Down Expand Up @@ -148,7 +146,7 @@ warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
strict_concatenate = true
extra_checks = true
check_untyped_defs = true
disallow_untyped_defs = true

Expand Down

0 comments on commit 6517631

Please sign in to comment.