From a0d88021568ab08af35886ecc8b91659ca4d2308 Mon Sep 17 00:00:00 2001 From: Privat33r-dev Date: Wed, 10 Apr 2024 11:08:16 +0200 Subject: [PATCH] Bump mypy version Since PIP supports minimum version 3.8 --- .mypy.ini | 2 +- .vscode/settings.json | 84 +++++++++++++++++++++---------------------- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.mypy.ini b/.mypy.ini index acf877b..0b058af 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.7 +python_version = 3.8 disallow_untyped_defs=True disallow_untyped_calls=True disallow_incomplete_defs=True diff --git a/.vscode/settings.json b/.vscode/settings.json index 5f5a51f..08967c9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,43 +1,43 @@ { - "python.languageServer": "Pylance", - "python.linting.pylintEnabled": false, - "python.linting.enabled": false, - "python.linting.pylintPath": "./.venv/bin/pylint", - "python.formatting.provider": "yapf", - "editor.formatOnSave": true, - "python.defaultInterpreterPath": "./.venv/bin/python", - "mypy.runUsingActiveInterpreter": true, - "emeraldwalk.runonsave": { - "commands": [ - { - "match": "\\.py$", - "cmd": "cd ${workspaceFolder} && poetry run isort -m 9 --line-length 160 clairvoyance tests scripts" - }, - { - "match": "\\.py$", - "cmd": "cd ${workspaceFolder} && poetry run autoflake --in-place --remove-unused-variables --remove-all-unused-imports clairvoyance/**/*.py" - }, - { - "match": "\\.py$", - "cmd": "cd ${workspaceFolder} && poetry run docformatter --wrap-summaries 160 --wrap-descriptions 160 -ri clairvoyance tests scripts" - }, - { - "match": "\\.py$", - "cmd": "cd ${workspaceFolder} && poetry run unify -ri clairvoyance tests scripts" - } - ] - }, - "python.testing.pytestArgs": [ - "--cov=clairvoyance tests scripts" - ], - "python.testing.pytestEnabled": true, - "python.testing.pytestPath": "../scripts/pytest-with-cov", - "python.linting.ignorePatterns": [ - "**/site-packages/**/*.py", - ".vscode/*.py", - ".venv/**" - ], - "files.exclude": { - "**/__pycache__": true, - } - } \ No newline at end of file + "python.languageServer": "Pylance", + "python.linting.pylintEnabled": false, + "python.linting.enabled": false, + "python.linting.pylintPath": "./.venv/bin/pylint", + "python.formatting.provider": "yapf", + "editor.formatOnSave": true, + "python.defaultInterpreterPath": "./.venv/bin/python", + "mypy.runUsingActiveInterpreter": true, + "emeraldwalk.runonsave": { + "commands": [ + { + "match": "\\.py$", + "cmd": "cd ${workspaceFolder} && poetry run isort -m 9 --line-length 160 clairvoyance tests scripts" + }, + { + "match": "\\.py$", + "cmd": "cd ${workspaceFolder} && poetry run autoflake --in-place --remove-unused-variables --remove-all-unused-imports clairvoyance/**/*.py" + }, + { + "match": "\\.py$", + "cmd": "cd ${workspaceFolder} && poetry run docformatter --wrap-summaries 160 --wrap-descriptions 160 -ri clairvoyance tests scripts" + }, + { + "match": "\\.py$", + "cmd": "cd ${workspaceFolder} && poetry run unify -ri clairvoyance tests scripts" + } + ] + }, + "python.testing.pytestArgs": [ + "--cov=clairvoyance tests scripts" + ], + "python.testing.pytestEnabled": true, + "python.testing.pytestPath": "../scripts/pytest-with-cov", + "python.linting.ignorePatterns": [ + "**/site-packages/**/*.py", + ".vscode/*.py", + ".venv/**" + ], + "files.exclude": { + "**/__pycache__": true, + } +} \ No newline at end of file