Skip to content

Commit

Permalink
chg: Minor improvements and improved type checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Feb 19, 2025
1 parent b0f744b commit a667b9e
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Python application - MyPy

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
name: Python ${{ matrix.python-version }} sample

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}

- name: Install poetry
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Test with MyPy
run: |
poetry run mypy .
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release History
===============

0.3.2 (2025-02-19)
------------------

- Minor improvements and improved type checks.


0.3.1 (2025-02-18)
------------------

Expand Down
123 changes: 122 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyandrozoo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@

from .api import pyAndroZoo

__all__ = ["pyAndroZoo"]
2 changes: 1 addition & 1 deletion pyandrozoo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from urllib.parse import urlparse, urlunparse, urlencode, parse_qs

import grequests # type: ignore[import-untyped]
import grequests

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

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[project]
name = "pyAndroZoo"
version = "0.3.1"
version = "0.3.2"
description = "A Python library to access the AndroZoo data set."
authors = [
{name = "Cédric Bonhomme",email = "[email protected]"}
Expand Down Expand Up @@ -42,6 +42,10 @@ classifiers = [
]


[tool.poetry.group.dev.dependencies]
mypy = "^1.15.0"


[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
Expand Down

0 comments on commit a667b9e

Please sign in to comment.