Skip to content

Commit

Permalink
chore: add types and refactor mypy.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Jan 22, 2024
1 parent fc35bcf commit 8e1a4e6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
16 changes: 14 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
[mypy]
disable_error_code = attr-defined

[mypy-foca.*]
ignore_missing_imports = True
disable_error_code = attr-defined
disable_error_code = no-redef

# [mypy-pro_wes.*]
[mypy-celery.*]
ignore_missing_imports = True

[mypy-connexion.*]
ignore_missing_imports = True

[mypy-pymongo.*]
ignore_missing_imports = True

[mypy-bson.objectid]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion pro_wes/tasks/track_run_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
from time import sleep
from typing import Dict, Optional, Mapping
from typing import Dict, Optional

from foca.database.register_mongodb import _create_mongo_client
from foca.models.config import Config
Expand Down
5 changes: 3 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ pylint>=2.15.5,<3
pytest>=7.2.0,<8
python-semantic-release>=7.32.2,<8
mypy~=1.8
types-setuptools
types-requests
types-setuptools~=69.0.0.20240106
types-requests~=2.31.0.20240106
types-docutils~=0.20.0.20240106

0 comments on commit 8e1a4e6

Please sign in to comment.