From 2b90ba0bbbc1d9291176fb71361d356e1f645e8a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 09:05:21 +0000 Subject: [PATCH 1/2] chore: Bump the development-dependencies group with 9 updates Bumps the development-dependencies group with 9 updates: | Package | From | To | | --- | --- | --- | | [black](https://github.com/psf/black) | `23.3.0` | `23.7.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.2.7` | `7.3.0` | | [flake8](https://github.com/pycqa/flake8) | `6.0.0` | `6.1.0` | | [mypy](https://github.com/python/mypy) | `1.2.0` | `1.5.1` | | [tox](https://github.com/tox-dev/tox) | `4.6.4` | `4.8.0` | | [twine](https://github.com/pypa/twine) | `3.1.1` | `4.0.2` | | [types-jsonschema](https://github.com/python/typeshed) | `4.17.0.6` | `4.17.0.10` | | [types-pytz](https://github.com/python/typeshed) | `2023.3.0.0` | `2023.3.0.1` | | [wheel](https://github.com/pypa/wheel) | `0.41.0` | `0.41.2` | Updates `black` from 23.3.0 to 23.7.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.3.0...23.7.0) Updates `coverage` from 7.2.7 to 7.3.0 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.2.7...7.3.0) Updates `flake8` from 6.0.0 to 6.1.0 - [Commits](https://github.com/pycqa/flake8/compare/6.0.0...6.1.0) Updates `mypy` from 1.2.0 to 1.5.1 - [Commits](https://github.com/python/mypy/compare/v1.2.0...v1.5.1) Updates `tox` from 4.6.4 to 4.8.0 - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst) - [Commits](https://github.com/tox-dev/tox/compare/4.6.4...4.8.0) Updates `twine` from 3.1.1 to 4.0.2 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/3.1.1...4.0.2) Updates `types-jsonschema` from 4.17.0.6 to 4.17.0.10 - [Commits](https://github.com/python/typeshed/commits) Updates `types-pytz` from 2023.3.0.0 to 2023.3.0.1 - [Commits](https://github.com/python/typeshed/commits) Updates `wheel` from 0.41.0 to 0.41.2 - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](https://github.com/pypa/wheel/compare/0.41.0...0.41.2) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: tox dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: twine dependency-type: direct:development update-type: version-update:semver-major dependency-group: development-dependencies - dependency-name: types-jsonschema dependency-type: direct:development update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: types-pytz dependency-type: direct:development update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: wheel dependency-type: direct:development update-type: version-update:semver-patch dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] --- requirements-dev.in | 18 +++++++-------- requirements-dev.txt | 52 +++++++++++++++++++++++++++++--------------- 2 files changed, 43 insertions(+), 27 deletions(-) diff --git a/requirements-dev.in b/requirements-dev.in index 7544b466..45b5a4bb 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -4,15 +4,15 @@ -c requirements.txt -black==23.3.0 +black==23.7.0 bumpversion==0.5.3 -coverage==7.2.7 -flake8==6.0.0 +coverage==7.3.0 +flake8==6.1.0 isort==5.12.0 -mypy==1.2.0 -tox==4.6.4 -twine==3.1.1 -types-jsonschema==4.17.0.6 +mypy==1.5.1 +tox==4.8.0 +twine==4.0.2 +types-jsonschema==4.17.0.10 types-pyOpenSSL==23.2.0.2 -types-pytz==2023.3.0.0 -wheel==0.41.0 +types-pytz==2023.3.0.1 +wheel==0.41.2 diff --git a/requirements-dev.txt b/requirements-dev.txt index f1ad5180..9e647744 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,7 +4,7 @@ # # pip-compile --strip-extras requirements-dev.in # -black==23.3.0 +black==23.7.0 # via -r requirements-dev.in bleach==5.0.1 # via readme-renderer @@ -28,7 +28,7 @@ click==8.0.3 # via black colorama==0.4.6 # via tox -coverage==7.2.7 +coverage==7.3.0 # via -r requirements-dev.in cryptography==41.0.3 # via @@ -43,10 +43,14 @@ filelock==3.12.2 # via # tox # virtualenv -flake8==6.0.0 +flake8==6.1.0 # via -r requirements-dev.in idna==2.10 # via requests +importlib-metadata==6.1.0 + # via + # -c requirements.txt + # twine isort==5.12.0 # via -r requirements-dev.in jeepney==0.8.0 @@ -55,9 +59,13 @@ jeepney==0.8.0 # secretstorage keyring==21.4.0 # via twine +markdown-it-py==3.0.0 + # via rich mccabe==0.7.0 # via flake8 -mypy==1.2.0 +mdurl==0.1.2 + # via markdown-it-py +mypy==1.5.1 # via -r requirements-dev.in mypy-extensions==1.0.0 # via @@ -80,16 +88,18 @@ platformdirs==3.9.1 # virtualenv pluggy==1.2.0 # via tox -pycodestyle==2.10.0 +pycodestyle==2.11.0 # via flake8 pycparser==2.20 # via # -c requirements.txt # cffi -pyflakes==3.0.1 +pyflakes==3.1.0 # via flake8 pygments==2.15.0 - # via readme-renderer + # via + # readme-renderer + # rich pyproject-api==1.5.3 # via tox readme-renderer==35.0 @@ -100,6 +110,10 @@ requests==2.31.0 # twine requests-toolbelt==0.9.1 # via twine +rfc3986==2.0.0 + # via twine +rich==13.5.2 + # via twine secretstorage==3.3.3 # via keyring six==1.16.0 @@ -110,31 +124,33 @@ tomli==2.0.1 # mypy # pyproject-api # tox -tox==4.6.4 +tox==4.8.0 # via -r requirements-dev.in -tqdm==4.64.0 - # via twine -twine==3.1.1 +twine==4.0.2 # via -r requirements-dev.in -types-jsonschema==4.17.0.6 +types-jsonschema==4.17.0.10 # via -r requirements-dev.in types-pyopenssl==23.2.0.2 # via -r requirements-dev.in -types-pytz==2023.3.0.0 +types-pytz==2023.3.0.1 # via -r requirements-dev.in typing-extensions==4.3.0 # via # -c requirements.txt # black # mypy + # rich urllib3==1.26.12 - # via requests + # via + # requests + # twine virtualenv==20.24.1 # via tox webencodings==0.5.1 # via bleach -wheel==0.41.0 +wheel==0.41.2 # via -r requirements-dev.in - -# The following packages are considered to be unsafe in a requirements file: -# setuptools +zipp==3.8.1 + # via + # -c requirements.txt + # importlib-metadata From ac99cd2d431b11ffd89213f489b5f0bac778b244 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Tue, 5 Sep 2023 15:19:23 -0300 Subject: [PATCH 2/2] fix(libs): Fix errors reported by Flake8 Fix the following error: ```text E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` ``` --- cl_sii/libs/dataclass_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_sii/libs/dataclass_utils.py b/cl_sii/libs/dataclass_utils.py index 71180ebd..55ff9135 100644 --- a/cl_sii/libs/dataclass_utils.py +++ b/cl_sii/libs/dataclass_utils.py @@ -84,7 +84,7 @@ def dc_deep_compare(value_a: object, value_b: object) -> DcDeepComparison: def _dc_deep_compare_to(value_a: object, value_b: object) -> DcDeepComparison: - if type(value_a) != type(value_b): + if type(value_a) is not type(value_b): raise TypeError("Values to be compared must be of the same type.") if value_a == value_b: