-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chg: Minor improvements and improved type checks.
- Loading branch information
1 parent
b0f744b
commit a667b9e
Showing
6 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
|
||
from .api import pyAndroZoo | ||
|
||
__all__ = ["pyAndroZoo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]"} | ||
|
@@ -42,6 +42,10 @@ classifiers = [ | |
] | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
mypy = "^1.15.0" | ||
|
||
|
||
[tool.mypy] | ||
python_version = "3.13" | ||
check_untyped_defs = true | ||
|