From 3f44cd3db75805e2ceb04382a70d05d323d0d6b5 Mon Sep 17 00:00:00 2001 From: Arnaud Botella Date: Thu, 4 Sep 2025 15:19:02 +0200 Subject: [PATCH 1/2] fix(Mypy): initial support --- .gitignore | 2 +- .vscode/settings.json | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 00bb269..87258e8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ dist env/ venv/ -.vscode/ __pycache__/ .env /node_modules @@ -12,3 +11,4 @@ build /src/tests/tests_output/ *.egg-info .coverage* +.mypy_cache \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..006e581 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "python.testing.pytestArgs": [ + "." + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true, + "mypy-type-checker.args": [ + "--config-file=mypy.ini" + ], + "mypy-type-checker.interpreter": [ + "${workspaceFolder}/venv/bin/python" + ] +} \ No newline at end of file From 511e6633669b697140976ec15c56e14eb3806896 Mon Sep 17 00:00:00 2001 From: BotellaA <3213882+BotellaA@users.noreply.github.com> Date: Thu, 4 Sep 2025 13:19:56 +0000 Subject: [PATCH 2/2] Apply prepare changes --- commitlint.config.js | 16 ++++++++++++++++ mypy.ini | 3 +++ requirements.txt | 4 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 commitlint.config.js create mode 100644 mypy.ini diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..3a29484 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,16 @@ +export default { + extends: ["@commitlint/config-angular"], + rules: { + "scope-empty": [2, "never"], + "subject-empty": [2, "never"], + "subject-max-length": [0], + "body-leading-blank": [0], + "footer-leading-blank": [0], + "header-max-length": [0], + "scope-case": [0], + "subject-case": [0], + "subject-full-stop": [0], + "type-case": [0], + "type-empty": [0], + }, +} diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..8240312 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,3 @@ +[mypy] +strict = True +files = src/ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 36123ac..d7f16fc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ frozenlist==1.7.0 # aiosignal idna==3.10 # via yarl -multidict==6.6.3 +multidict==6.6.4 # via # aiohttp # yarl @@ -28,7 +28,7 @@ propcache==0.3.2 # via # aiohttp # yarl -typing-extensions==4.14.1 +typing-extensions==4.15.0 # via aiosignal websocket-client==1.8.0 # via -r requirements.in