Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions docs/examples/callbacks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "3982f572-4151-47df-923d-3cd6794e7070",
"id": "0",
"metadata": {},
"source": [
"# Callbacks\n",
Expand All @@ -13,7 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "eebbcc16-dd8a-4e9b-9d79-b7cb2d3dbee0",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -24,7 +24,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f576ccc0-d8e8-4d6c-b09c-5c3634c94bf6",
"id": "2",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -55,7 +55,7 @@
},
{
"cell_type": "markdown",
"id": "1e4c6ae8-c124-4e05-a9d2-6c4d987d9cf7",
"id": "3",
"metadata": {},
"source": [
"## Overlaying a mask\n",
Expand All @@ -66,7 +66,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "352f6e5e-7b0b-44aa-bb19-da2bc6bca654",
"id": "4",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -108,7 +108,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9f1e35b8-5b0e-442e-ae91-910d4ff04017",
"id": "5",
"metadata": {},
"outputs": [],
"source": []
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/lazy-loading.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -16,7 +16,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "483bffb1-f291-40ad-80ba-e9e08b8f6e88",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -27,7 +27,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b62a762f-26be-4dba-ab07-ec26648b970b",
"id": "2",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -57,7 +57,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8000249c-babc-430d-bd29-7a55145ce0bc",
"id": "3",
"metadata": {},
"outputs": [],
"source": []
Expand Down
14 changes: 7 additions & 7 deletions docs/examples/multi-class.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "10d8e4fe-11be-478a-bc33-a81bb0dce987",
"id": "0",
"metadata": {},
"source": [
"# Multi Class\n",
Expand All @@ -13,7 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d7aa1379-5cbd-4284-8d99-373bfd02c807",
"id": "1",
"metadata": {
"tags": []
},
Expand All @@ -26,7 +26,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d7db1d50-2fe0-4fa5-9af9-1f0753acd34d",
"id": "2",
"metadata": {
"tags": []
},
Expand All @@ -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."
Expand All @@ -58,7 +58,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b724f277-2eb9-4d5c-b0a7-0820ce4b20d2",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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"
Expand All @@ -76,7 +76,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "700dcf86-7337-4b50-aab0-ddd7346a24d9",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand Down
18 changes: 9 additions & 9 deletions docs/examples/single-class.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "cdf469e7-0110-4b75-97d5-69c25aa290f5",
"id": "0",
"metadata": {},
"source": [
"# Single Class\n"
Expand All @@ -11,7 +11,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4a694f4d-ba0d-4ea4-b15e-db17a2fa8e61",
"id": "1",
"metadata": {
"tags": []
},
Expand All @@ -23,7 +23,7 @@
},
{
"cell_type": "markdown",
"id": "8b0938f1-fab9-4127-b836-9c06a2fbc333",
"id": "2",
"metadata": {},
"source": [
"```{note}\n",
Expand All @@ -34,7 +34,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "65afcfa0-1511-4721-a79a-8df969a1002f",
"id": "3",
"metadata": {
"tags": []
},
Expand All @@ -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:"
Expand All @@ -63,7 +63,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c79afd96-4f6d-46f8-ab7d-46b5dc6de38e",
"id": "5",
"metadata": {
"tags": []
},
Expand All @@ -74,7 +74,7 @@
},
{
"cell_type": "markdown",
"id": "7416b621-d9be-4e5d-9600-14f341ee419b",
"id": "6",
"metadata": {},
"source": [
"Or as a onehot encoding"
Expand All @@ -83,7 +83,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cca10064-0f61-47c3-b526-5d1330170c61",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -93,7 +93,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "253335a9-17ea-4dfd-96a4-580f8593ac1d",
"id": "8",
"metadata": {},
"outputs": [],
"source": []
Expand Down
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ url = https://mpl-image-labeller.rtfd.io
author = Ian Hunt-Isaak
author_email = [email protected]
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
Expand All @@ -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]
Expand Down