From dee3e223dc54e4b99ec0a22c9bb07362b72c740d Mon Sep 17 00:00:00 2001 From: Evgenia Lyjina Date: Wed, 26 Jan 2022 15:15:17 +0000 Subject: [PATCH 1/3] Add mypy linting checker for VSCode --- .devcontainer/devcontainer.json | 8 ++++++++ requirements-dev.in | 1 + requirements-dev.txt | 11 ++++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 13140fc03..225e54305 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,6 +23,14 @@ "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.pythonPath": "/usr/local/bin/python", + "python.linting.mypyEnabled": true, + "python.linting.mypyArgs": [ + "--ignore-missing-imports", + "--follow-imports=silent", + "--show-column-numbers", + "--strict", + "--exclude tests" + ], }, "extensions": [ "ms-python.python", diff --git a/requirements-dev.in b/requirements-dev.in index 2181f099b..eff2402df 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -2,6 +2,7 @@ aiofiles # to run integration tests black certifi flake8 +mypy pip-tools # pip depedencies management pre-commit tox diff --git a/requirements-dev.txt b/requirements-dev.txt index 2437f3593..968887641 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -30,8 +30,12 @@ identify==2.3.6 # via pre-commit mccabe==0.6.1 # via flake8 +mypy==0.931 + # via -r requirements-dev.in mypy-extensions==0.4.3 - # via black + # via + # black + # mypy nodeenv==1.6.0 # via pre-commit packaging==21.2 @@ -71,9 +75,14 @@ toml==0.10.2 tomli==1.2.2 # via # black + # mypy # pep517 tox==3.24.5 # via -r requirements-dev.in +typing-extensions==4.0.0 + # via + # black + # mypy virtualenv==20.10.0 # via # pre-commit From 7ddef1206c1a09ceaaaa31315b27cb407bf8c0b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Feb 2022 09:06:13 +0000 Subject: [PATCH 2/3] Bump pytest from 7.0.0 to 7.0.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.0 to 7.0.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.0.0...7.0.1) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ef36e8f41..cb4a29078 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ packages=find_packages(exclude=["tests"]), install_requires=requirements, extras_require={ - "test": ["coverage==6.3.1", "pytest==7.0.0", "pytest-cov==3.0.0", "tox==3.24.5"], + "test": ["coverage==6.3.1", "pytest==7.0.1", "pytest-cov==3.0.0", "tox==3.24.5"], "docs": ["sphinx >= 1.4", "sphinx_rtd_theme==1.0.0"], }, package_data={ From 5d4a9781d27a3e2cf196a44fbebe3b583c9cfde3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Feb 2022 09:06:54 +0000 Subject: [PATCH 3/3] Bump pip-tools from 6.5.0 to 6.5.1 Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 6.5.0 to 6.5.1. - [Release notes](https://github.com/jazzband/pip-tools/releases) - [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md) - [Commits](https://github.com/jazzband/pip-tools/compare/6.5.0...6.5.1) --- updated-dependencies: - dependency-name: pip-tools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 968887641..2556a46a1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,7 +6,7 @@ # aiofiles==0.8.0 # via -r requirements-dev.in -backports.entry-points-selectable==1.1.1 +backports-entry-points-selectable==1.1.1 # via virtualenv black==22.1.0 # via -r requirements-dev.in @@ -44,7 +44,7 @@ pathspec==0.9.0 # via black pep517==0.12.0 # via pip-tools -pip-tools==6.5.0 +pip-tools==6.5.1 # via -r requirements-dev.in platformdirs==2.4.0 # via @@ -80,9 +80,7 @@ tomli==1.2.2 tox==3.24.5 # via -r requirements-dev.in typing-extensions==4.0.0 - # via - # black - # mypy + # via mypy virtualenv==20.10.0 # via # pre-commit