diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 73cf56f..eef2a3a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,48 +2,48 @@ ci: autoupdate_schedule: 'quarterly' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v6.0.0 hooks: - id: check-docstring-first - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.17.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: [flake8-typing-imports==1.7.0] - - repo: https://github.com/myint/autoflake - rev: v1.4 + - repo: https://github.com/PyCQA/autoflake + rev: v2.3.1 hooks: - id: autoflake args: ["--in-place", "--remove-all-unused-imports", "--ignore-init-module-imports", "--remove-unused-variables"] - repo: https://github.com/PyCQA/isort - rev: 5.8.0 + rev: 6.1.0 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 21.5b2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.9.0 hooks: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v2.19.0 + rev: v3.20.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.812 + rev: v1.18.2 hooks: - id: mypy - repo: https://github.com/nbQA-dev/nbQA - rev: 1.1.1 + rev: 1.9.1 hooks: - id: nbqa-black - id: nbqa-isort - repo: https://github.com/kynan/nbstripout - rev: 0.5.0 + rev: 0.8.1 hooks: - id: nbstripout diff --git a/docs/examples/callbacks.ipynb b/docs/examples/callbacks.ipynb index bf5239b..9e4bd81 100644 --- a/docs/examples/callbacks.ipynb +++ b/docs/examples/callbacks.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "3982f572-4151-47df-923d-3cd6794e7070", + "id": "0", "metadata": {}, "source": [ "# Callbacks\n", @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "eebbcc16-dd8a-4e9b-9d79-b7cb2d3dbee0", + "id": "1", "metadata": {}, "outputs": [], "source": [ @@ -24,7 +24,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f576ccc0-d8e8-4d6c-b09c-5c3634c94bf6", + "id": "2", "metadata": { "tags": [] }, @@ -55,7 +55,7 @@ }, { "cell_type": "markdown", - "id": "1e4c6ae8-c124-4e05-a9d2-6c4d987d9cf7", + "id": "3", "metadata": {}, "source": [ "## Overlaying a mask\n", @@ -66,7 +66,7 @@ { "cell_type": "code", "execution_count": null, - "id": "352f6e5e-7b0b-44aa-bb19-da2bc6bca654", + "id": "4", "metadata": { "tags": [] }, @@ -108,7 +108,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9f1e35b8-5b0e-442e-ae91-910d4ff04017", + "id": "5", "metadata": {}, "outputs": [], "source": [] diff --git a/docs/examples/lazy-loading.ipynb b/docs/examples/lazy-loading.ipynb index 24f791b..5953ffa 100644 --- a/docs/examples/lazy-loading.ipynb +++ b/docs/examples/lazy-loading.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "7b2b704c-a2b1-4497-bd93-b6619804d848", + "id": "0", "metadata": {}, "source": [ "# Images from a function (Lazy loading)\n", @@ -16,7 +16,7 @@ { "cell_type": "code", "execution_count": null, - "id": "483bffb1-f291-40ad-80ba-e9e08b8f6e88", + "id": "1", "metadata": {}, "outputs": [], "source": [ @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b62a762f-26be-4dba-ab07-ec26648b970b", + "id": "2", "metadata": { "tags": [] }, @@ -57,7 +57,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8000249c-babc-430d-bd29-7a55145ce0bc", + "id": "3", "metadata": {}, "outputs": [], "source": [] diff --git a/docs/examples/multi-class.ipynb b/docs/examples/multi-class.ipynb index 9335a56..e5089b5 100644 --- a/docs/examples/multi-class.ipynb +++ b/docs/examples/multi-class.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "10d8e4fe-11be-478a-bc33-a81bb0dce987", + "id": "0", "metadata": {}, "source": [ "# Multi Class\n", @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d7aa1379-5cbd-4284-8d99-373bfd02c807", + "id": "1", "metadata": { "tags": [] }, @@ -26,7 +26,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d7db1d50-2fe0-4fa5-9af9-1f0753acd34d", + "id": "2", "metadata": { "tags": [] }, @@ -49,7 +49,7 @@ }, { "cell_type": "markdown", - "id": "4471612b-e5f7-4a55-8232-536da875fb29", + "id": "3", "metadata": {}, "source": [ "The natural representation of this multiclass is a onehot encoding accessible (and settable!) via the `labels_onehot` property." @@ -58,7 +58,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b724f277-2eb9-4d5c-b0a7-0820ce4b20d2", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -67,7 +67,7 @@ }, { "cell_type": "markdown", - "id": "2cf1e17e-8a18-4a56-b9d8-4be61fe4bd47", + "id": "5", "metadata": {}, "source": [ "If you can you can also get the labels as a ragged list of lists via the `labels` property" @@ -76,7 +76,7 @@ { "cell_type": "code", "execution_count": null, - "id": "700dcf86-7337-4b50-aab0-ddd7346a24d9", + "id": "6", "metadata": {}, "outputs": [], "source": [ diff --git a/docs/examples/single-class.ipynb b/docs/examples/single-class.ipynb index b004000..aa92bc0 100644 --- a/docs/examples/single-class.ipynb +++ b/docs/examples/single-class.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "cdf469e7-0110-4b75-97d5-69c25aa290f5", + "id": "0", "metadata": {}, "source": [ "# Single Class\n" @@ -11,7 +11,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4a694f4d-ba0d-4ea4-b15e-db17a2fa8e61", + "id": "1", "metadata": { "tags": [] }, @@ -23,7 +23,7 @@ }, { "cell_type": "markdown", - "id": "8b0938f1-fab9-4127-b836-9c06a2fbc333", + "id": "2", "metadata": {}, "source": [ "```{note}\n", @@ -34,7 +34,7 @@ { "cell_type": "code", "execution_count": null, - "id": "65afcfa0-1511-4721-a79a-8df969a1002f", + "id": "3", "metadata": { "tags": [] }, @@ -54,7 +54,7 @@ }, { "cell_type": "markdown", - "id": "f517f339-a7e1-4bd5-bff4-fc56d9948a1d", + "id": "4", "metadata": {}, "source": [ "After you label the images then the labels will be available as a list:" @@ -63,7 +63,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c79afd96-4f6d-46f8-ab7d-46b5dc6de38e", + "id": "5", "metadata": { "tags": [] }, @@ -74,7 +74,7 @@ }, { "cell_type": "markdown", - "id": "7416b621-d9be-4e5d-9600-14f341ee419b", + "id": "6", "metadata": {}, "source": [ "Or as a onehot encoding" @@ -83,7 +83,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cca10064-0f61-47c3-b526-5d1330170c61", + "id": "7", "metadata": {}, "outputs": [], "source": [ @@ -93,7 +93,7 @@ { "cell_type": "code", "execution_count": null, - "id": "253335a9-17ea-4dfd-96a4-580f8593ac1d", + "id": "8", "metadata": {}, "outputs": [], "source": [] diff --git a/setup.cfg b/setup.cfg index 24b6fc5..2e34f8e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,17 +7,13 @@ url = https://mpl-image-labeller.rtfd.io author = Ian Hunt-Isaak author_email = ianhuntisaak@gmail.com license = BSD-3-Clause -license_file = LICENSE +license_files = LICENSE classifiers = Development Status :: 5 - Production/Stable Framework :: Matplotlib - License :: OSI Approved :: BSD License Natural Language :: English Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 Programming Language :: Python :: Implementation :: CPython project_urls = Tracker = https://github.com/ianhi/mpl-image-labeller/issues @@ -29,7 +25,7 @@ project_urls = packages = find: install_requires = matplotlib -python_requires = >=3.7 +python_requires = >=3.9 zip_safe = False [options.extras_require]