Skip to content

Commit a667b9e

Browse files
chg: Minor improvements and improved type checks.
1 parent b0f744b commit a667b9e

File tree

6 files changed

+168
-3
lines changed

6 files changed

+168
-3
lines changed

.github/workflows/mypy.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python application - MyPy
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.10', '3.11', '3.12', '3.13']
16+
name: Python ${{ matrix.python-version }} sample
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{matrix.python-version}}
24+
25+
- name: Install poetry
26+
run: |
27+
python -m pip install --upgrade pip poetry
28+
poetry install
29+
30+
- name: Test with MyPy
31+
run: |
32+
poetry run mypy .

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Release History
22
===============
33

4+
0.3.2 (2025-02-19)
5+
------------------
6+
7+
- Minor improvements and improved type checks.
8+
9+
410
0.3.1 (2025-02-18)
511
------------------
612

poetry.lock

+122-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyandrozoo/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11

22
from .api import pyAndroZoo
3+
4+
__all__ = ["pyAndroZoo"]

pyandrozoo/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from urllib.parse import urlparse, urlunparse, urlencode, parse_qs
66

7-
import grequests # type: ignore[import-untyped]
7+
import grequests
88

99
ANDROZOO_URL = 'https://androzoo.uni.lu/api/download'
1010

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[project]
77
name = "pyAndroZoo"
8-
version = "0.3.1"
8+
version = "0.3.2"
99
description = "A Python library to access the AndroZoo data set."
1010
authors = [
1111
{name = "Cédric Bonhomme",email = "cedric@cedricbonhomme.org"}
@@ -42,6 +42,10 @@ classifiers = [
4242
]
4343

4444

45+
[tool.poetry.group.dev.dependencies]
46+
mypy = "^1.15.0"
47+
48+
4549
[tool.mypy]
4650
python_version = "3.13"
4751
check_untyped_defs = true

0 commit comments

Comments
 (0)