diff --git a/awesomeversion/__init__.py b/awesomeversion/__init__.py index a49a8a7..a2a9bb4 100644 --- a/awesomeversion/__init__.py +++ b/awesomeversion/__init__.py @@ -1,4 +1,5 @@ """Initialize the AwesomeVersion package.""" + from .awesomeversion import AwesomeVersion, AwesomeVersionDiff from .exceptions import ( AwesomeVersionCompareException, diff --git a/awesomeversion/awesomeversion.py b/awesomeversion/awesomeversion.py index 6a2b851..b441c6a 100644 --- a/awesomeversion/awesomeversion.py +++ b/awesomeversion/awesomeversion.py @@ -1,4 +1,5 @@ """AwesomeVersion.""" + from __future__ import annotations from typing import TYPE_CHECKING, Any, Dict diff --git a/awesomeversion/comparehandlers/container.py b/awesomeversion/comparehandlers/container.py index 7a8044c..7a0276a 100644 --- a/awesomeversion/comparehandlers/container.py +++ b/awesomeversion/comparehandlers/container.py @@ -1,4 +1,5 @@ """Special handler for container.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/awesomeversion/comparehandlers/modifier.py b/awesomeversion/comparehandlers/modifier.py index 848b27d..87c4f7e 100644 --- a/awesomeversion/comparehandlers/modifier.py +++ b/awesomeversion/comparehandlers/modifier.py @@ -1,4 +1,5 @@ """Special handler for modifier.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/awesomeversion/comparehandlers/sections.py b/awesomeversion/comparehandlers/sections.py index 0d3e0eb..88dbb91 100644 --- a/awesomeversion/comparehandlers/sections.py +++ b/awesomeversion/comparehandlers/sections.py @@ -1,4 +1,5 @@ """Special handler for sections.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/awesomeversion/comparehandlers/simple.py b/awesomeversion/comparehandlers/simple.py index cd27026..67de412 100644 --- a/awesomeversion/comparehandlers/simple.py +++ b/awesomeversion/comparehandlers/simple.py @@ -1,4 +1,5 @@ """Special handler for simple.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/awesomeversion/strategy.py b/awesomeversion/strategy.py index 39d0533..72691c3 100644 --- a/awesomeversion/strategy.py +++ b/awesomeversion/strategy.py @@ -1,4 +1,5 @@ """Strategies for AwesomeVersion.""" + from __future__ import annotations from collections.abc import Callable diff --git a/awesomeversion/typing.py b/awesomeversion/typing.py index 3aab66d..d07ad23 100644 --- a/awesomeversion/typing.py +++ b/awesomeversion/typing.py @@ -1,4 +1,5 @@ """"Custom types for AwesomeVersion.""" + from __future__ import annotations from typing import TYPE_CHECKING, List, Tuple, Union diff --git a/awesomeversion/utils/regex.py b/awesomeversion/utils/regex.py index 43effcc..e64ee3d 100644 --- a/awesomeversion/utils/regex.py +++ b/awesomeversion/utils/regex.py @@ -1,4 +1,5 @@ """Regex utils for AwesomeVersion.""" + import re from typing import Pattern diff --git a/poetry.lock b/poetry.lock index 62d0a0b..6f12cff 100644 --- a/poetry.lock +++ b/poetry.lock @@ -16,29 +16,33 @@ typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} [[package]] name = "black" -version = "23.11.0" +version = "24.1.1" description = "The uncompromising code formatter." optional = false python-versions = ">=3.8" files = [ - {file = "black-23.11.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dbea0bb8575c6b6303cc65017b46351dc5953eea5c0a59d7b7e3a2d2f433a911"}, - {file = "black-23.11.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:412f56bab20ac85927f3a959230331de5614aecda1ede14b373083f62ec24e6f"}, - {file = "black-23.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d136ef5b418c81660ad847efe0e55c58c8208b77a57a28a503a5f345ccf01394"}, - {file = "black-23.11.0-cp310-cp310-win_amd64.whl", hash = "sha256:6c1cac07e64433f646a9a838cdc00c9768b3c362805afc3fce341af0e6a9ae9f"}, - {file = "black-23.11.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cf57719e581cfd48c4efe28543fea3d139c6b6f1238b3f0102a9c73992cbb479"}, - {file = "black-23.11.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:698c1e0d5c43354ec5d6f4d914d0d553a9ada56c85415700b81dc90125aac244"}, - {file = "black-23.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:760415ccc20f9e8747084169110ef75d545f3b0932ee21368f63ac0fee86b221"}, - {file = "black-23.11.0-cp311-cp311-win_amd64.whl", hash = "sha256:58e5f4d08a205b11800332920e285bd25e1a75c54953e05502052738fe16b3b5"}, - {file = "black-23.11.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:45aa1d4675964946e53ab81aeec7a37613c1cb71647b5394779e6efb79d6d187"}, - {file = "black-23.11.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4c44b7211a3a0570cc097e81135faa5f261264f4dfaa22bd5ee2875a4e773bd6"}, - {file = "black-23.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2a9acad1451632021ee0d146c8765782a0c3846e0e0ea46659d7c4f89d9b212b"}, - {file = "black-23.11.0-cp38-cp38-win_amd64.whl", hash = "sha256:fc7f6a44d52747e65a02558e1d807c82df1d66ffa80a601862040a43ec2e3142"}, - {file = "black-23.11.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7f622b6822f02bfaf2a5cd31fdb7cd86fcf33dab6ced5185c35f5db98260b055"}, - {file = "black-23.11.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:250d7e60f323fcfc8ea6c800d5eba12f7967400eb6c2d21ae85ad31c204fb1f4"}, - {file = "black-23.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5133f5507007ba08d8b7b263c7aa0f931af5ba88a29beacc4b2dc23fcefe9c06"}, - {file = "black-23.11.0-cp39-cp39-win_amd64.whl", hash = "sha256:421f3e44aa67138ab1b9bfbc22ee3780b22fa5b291e4db8ab7eee95200726b07"}, - {file = "black-23.11.0-py3-none-any.whl", hash = "sha256:54caaa703227c6e0c87b76326d0862184729a69b73d3b7305b6288e1d830067e"}, - {file = "black-23.11.0.tar.gz", hash = "sha256:4c68855825ff432d197229846f971bc4d6666ce90492e5b02013bcaca4d9ab05"}, + {file = "black-24.1.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2588021038bd5ada078de606f2a804cadd0a3cc6a79cb3e9bb3a8bf581325a4c"}, + {file = "black-24.1.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1a95915c98d6e32ca43809d46d932e2abc5f1f7d582ffbe65a5b4d1588af7445"}, + {file = "black-24.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2fa6a0e965779c8f2afb286f9ef798df770ba2b6cee063c650b96adec22c056a"}, + {file = "black-24.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:5242ecd9e990aeb995b6d03dc3b2d112d4a78f2083e5a8e86d566340ae80fec4"}, + {file = "black-24.1.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fc1ec9aa6f4d98d022101e015261c056ddebe3da6a8ccfc2c792cbe0349d48b7"}, + {file = "black-24.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0269dfdea12442022e88043d2910429bed717b2d04523867a85dacce535916b8"}, + {file = "black-24.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b3d64db762eae4a5ce04b6e3dd745dcca0fb9560eb931a5be97472e38652a161"}, + {file = "black-24.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:5d7b06ea8816cbd4becfe5f70accae953c53c0e53aa98730ceccb0395520ee5d"}, + {file = "black-24.1.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:e2c8dfa14677f90d976f68e0c923947ae68fa3961d61ee30976c388adc0b02c8"}, + {file = "black-24.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a21725862d0e855ae05da1dd25e3825ed712eaaccef6b03017fe0853a01aa45e"}, + {file = "black-24.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07204d078e25327aad9ed2c64790d681238686bce254c910de640c7cc4fc3aa6"}, + {file = "black-24.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:a83fe522d9698d8f9a101b860b1ee154c1d25f8a82ceb807d319f085b2627c5b"}, + {file = "black-24.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:08b34e85170d368c37ca7bf81cf67ac863c9d1963b2c1780c39102187ec8dd62"}, + {file = "black-24.1.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7258c27115c1e3b5de9ac6c4f9957e3ee2c02c0b39222a24dc7aa03ba0e986f5"}, + {file = "black-24.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40657e1b78212d582a0edecafef133cf1dd02e6677f539b669db4746150d38f6"}, + {file = "black-24.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e298d588744efda02379521a19639ebcd314fba7a49be22136204d7ed1782717"}, + {file = "black-24.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:34afe9da5056aa123b8bfda1664bfe6fb4e9c6f311d8e4a6eb089da9a9173bf9"}, + {file = "black-24.1.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:854c06fb86fd854140f37fb24dbf10621f5dab9e3b0c29a690ba595e3d543024"}, + {file = "black-24.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3897ae5a21ca132efa219c029cce5e6bfc9c3d34ed7e892113d199c0b1b444a2"}, + {file = "black-24.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:ecba2a15dfb2d97105be74bbfe5128bc5e9fa8477d8c46766505c1dda5883aac"}, + {file = "black-24.1.1-py3-none-any.whl", hash = "sha256:5cdc2e2195212208fbcae579b931407c1fa9997584f0a415421748aeafff1168"}, + {file = "black-24.1.1.tar.gz", hash = "sha256:48b5760dcbfe5cf97fd4fba23946681f3a81514c6ab8a45b50da67ac8fbc6c7b"}, ] [package.dependencies] @@ -52,7 +56,7 @@ typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] -d = ["aiohttp (>=3.7.4)"] +d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"] jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] uvloop = ["uvloop (>=0.15.2)"] @@ -444,4 +448,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "cc612d71f775898564e7d9657d7e722b7b7f0bd2f21472b88363bfbfb5343d6f" +content-hash = "0abc1e2989b290a36fb9ef5f7a0993dc5108faba06edd5957019afc826415141" diff --git a/pyproject.toml b/pyproject.toml index 97ec2a6..5c3c154 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ version = "0" python = "^3.8" [tool.poetry.dev-dependencies] -black = "^23.11" +black = "^24.1" isort = "^5.12.0" mypy = "^1.6" pylint = "^3.0.1" diff --git a/tests/issues/test_issue14.py b/tests/issues/test_issue14.py index dd9696b..c0231ac 100644 --- a/tests/issues/test_issue14.py +++ b/tests/issues/test_issue14.py @@ -1,4 +1,5 @@ """Test for issue #14.""" + # https://github.com/ludeeus/awesomeversion/issues/14 from awesomeversion import AwesomeVersion from awesomeversion.strategy import AwesomeVersionStrategy diff --git a/tests/issues/test_issue153.py b/tests/issues/test_issue153.py index 9cd4252..ffc7097 100644 --- a/tests/issues/test_issue153.py +++ b/tests/issues/test_issue153.py @@ -1,4 +1,5 @@ """Test for issue #153.""" + # https://github.com/ludeeus/awesomeversion/issues/153 from awesomeversion import AwesomeVersion diff --git a/tests/issues/test_issue26.py b/tests/issues/test_issue26.py index 5c577fc..402adea 100644 --- a/tests/issues/test_issue26.py +++ b/tests/issues/test_issue26.py @@ -1,4 +1,5 @@ """Test for issue #26.""" + # https://github.com/ludeeus/awesomeversion/issues/26 from awesomeversion import AwesomeVersion diff --git a/tests/issues/test_issue96.py b/tests/issues/test_issue96.py index 1381837..ba7a1bc 100644 --- a/tests/issues/test_issue96.py +++ b/tests/issues/test_issue96.py @@ -1,4 +1,5 @@ """Test for issue #96.""" + # https://github.com/ludeeus/awesomeversion/issues/96 import re diff --git a/tests/test_awesomeversion.py b/tests/test_awesomeversion.py index b5a9197..62b9f17 100644 --- a/tests/test_awesomeversion.py +++ b/tests/test_awesomeversion.py @@ -1,4 +1,5 @@ """Test awesomeversion.""" + from __future__ import annotations import json diff --git a/tests/test_compare.py b/tests/test_compare.py index dff2ae8..eb0e7c7 100644 --- a/tests/test_compare.py +++ b/tests/test_compare.py @@ -1,4 +1,5 @@ """Test compare.""" + import pytest from awesomeversion import AwesomeVersion diff --git a/tests/test_equals.py b/tests/test_equals.py index 13e99b3..b31f0dc 100644 --- a/tests/test_equals.py +++ b/tests/test_equals.py @@ -1,4 +1,5 @@ """Test equals.""" + import pytest from awesomeversion import AwesomeVersion diff --git a/tests/test_handlers.py b/tests/test_handlers.py index 20a9af0..0c08712 100644 --- a/tests/test_handlers.py +++ b/tests/test_handlers.py @@ -1,4 +1,5 @@ """Test compare handlers.""" + from __future__ import annotations import pytest diff --git a/tests/test_snapshots.py b/tests/test_snapshots.py index 460aaa8..d736a0f 100644 --- a/tests/test_snapshots.py +++ b/tests/test_snapshots.py @@ -1,4 +1,5 @@ """Testing with snapshots.""" + import json import pytest diff --git a/tests/test_strategy.py b/tests/test_strategy.py index 40508d3..edd16ae 100644 --- a/tests/test_strategy.py +++ b/tests/test_strategy.py @@ -1,4 +1,5 @@ """Test match.""" + import pytest from awesomeversion import AwesomeVersion diff --git a/tests/test_version_scheme.py b/tests/test_version_scheme.py index 9ea371d..64c4dfe 100644 --- a/tests/test_version_scheme.py +++ b/tests/test_version_scheme.py @@ -1,4 +1,5 @@ """Test test_version_scheme.""" + from __future__ import annotations import pytest diff --git a/tests/utils/test_validate.py b/tests/utils/test_validate.py index 02d53a6..815133b 100644 --- a/tests/utils/test_validate.py +++ b/tests/utils/test_validate.py @@ -1,4 +1,5 @@ """Tests for the validate util.""" + import pytest from awesomeversion.utils.validate import value_is_base16