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 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