Skip to content

Commit

Permalink
14: Fix all typing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfse-slafleur committed Apr 16, 2024
1 parent 6ee4d0a commit 7dc33fb
Show file tree
Hide file tree
Showing 13 changed files with 154 additions and 365 deletions.
30 changes: 5 additions & 25 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --constraint=requirements.txt --extra=dev --output-file=dev-requirements.txt pyproject.toml
Expand Down Expand Up @@ -60,14 +60,9 @@ click-repl==0.3.0
colorama==0.4.6
# via
# -c requirements.txt
# build
# click
# omotes-rest (pyproject.toml)
# pytest
coverage[toml]==7.4.4
# via pytest-cov
exceptiongroup==1.2.0
# via pytest
flake8==6.0.0
# via
# flake8-docstrings
Expand All @@ -87,6 +82,7 @@ flask==2.3.3
# flask-dotenv
# flask-smorest
# omotes-rest (pyproject.toml)
# types-flask-cors
flask-cors==4.0.0
# via
# -c requirements.txt
Expand Down Expand Up @@ -164,10 +160,8 @@ multidict==6.0.5
# yarl
mypy==1.5.1
# via
# -c requirements.txt
# omotes-rest (pyproject.toml)
# sqlalchemy
# sqlalchemy-stubs
mypy-extensions==1.0.0
# via
# -c requirements.txt
Expand Down Expand Up @@ -252,10 +246,6 @@ sqlalchemy[mypy]==2.0.28
# via
# -c requirements.txt
# omotes-rest (pyproject.toml)
sqlalchemy-stubs==0.4
# via
# -c requirements.txt
# omotes-rest (pyproject.toml)
streamcapture==1.2.2
# via
# -c requirements.txt
Expand All @@ -264,27 +254,17 @@ structlog==23.1.0
# via
# -c requirements.txt
# omotes-rest (pyproject.toml)
toml==0.10.2
# via setuptools-git-versioning
tomli==2.0.1
# via
# -c requirements.txt
# black
# build
# coverage
# flake8-pyproject
# mypy
# pyproject-hooks
# pytest
# via black
types-flask-cors==4.0.0.20240405
# via omotes-rest (pyproject.toml)
types-protobuf==4.24.0.20240311
# via omotes-rest (pyproject.toml)
typing-extensions==4.7.1
# via
# -c requirements.txt
# marshmallow-dataclass
# mypy
# sqlalchemy
# sqlalchemy-stubs
# typing-inspect
typing-inspect==0.9.0
# via
Expand Down
11 changes: 0 additions & 11 deletions mypy.ini

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies = [
"python-dotenv ~= 1.0.0",
"structlog ~= 23.1.0",
"SQLAlchemy == 2.0.28",
"sqlalchemy-stubs == 0.4",
"omotes-sdk-python ~= 0.0.12",
]

Expand All @@ -55,7 +54,8 @@ dev = [
"build ~= 1.0.3",
"setuptools-git-versioning < 2",
"sqlalchemy[mypy]",
"types-protobuf ~= 4.24.0"
"types-protobuf ~= 4.24.0",
"types-Flask-Cors"
]

[project.urls]
Expand Down Expand Up @@ -116,7 +116,7 @@ exclude = [
'testmodel',
'tryouts.py',
]
plugins = ['sqlalchemy.ext.mypy.plugin']
plugins = ['sqlalchemy.ext.mypy.plugin', "marshmallow_dataclass.mypy"]

# mypy per-module options:
[[tool.mypy.overrides]]
Expand All @@ -125,5 +125,5 @@ check_untyped_defs = true
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "celery.*"
module = ["flask_smorest.*", "flask_dotenv.*", "gunicorn.*"]
ignore_missing_imports = true
231 changes: 0 additions & 231 deletions requirements.old

This file was deleted.

Loading

0 comments on commit 7dc33fb

Please sign in to comment.