Skip to content

Commit

Permalink
Merge pull request #262 from roboflow/iuri/mypy
Browse files Browse the repository at this point in the history
Setup mypy
  • Loading branch information
iurisilvio authored Jun 21, 2024
2 parents a9f43fd + 212c7c8 commit e27fcde
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ jobs:
make check_code_quality
- name: 🧪 Test
run: "python -m unittest"
- name: Check types with mypy
run: mypy .
# TODO: Fix typing
continue-on-error: true
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,24 @@ convention = "google"

[tool.ruff.pylint]
max-args = 20

[tool.mypy]
exclude = [
"^build/"
]

[[tool.mypy.overrides]]
module = "_datetime.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "requests_toolbelt.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "ultralytics.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "ipywidgets.*"
ignore_missing_imports = true
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@
# create optional [desktop]
extras_require={
"desktop": ["opencv-python==4.8.0.74"],
"dev": ["flake8", "black==22.3.0", "isort", "responses", "twine", "wheel"],
"dev": [
"flake8",
"black==22.3.0",
"isort",
"responses",
"twine",
"wheel",
"mypy",
"types-requests",
"types-pyyaml",
"types-setuptools",
"types-tqdm",
],
},
entry_points={
"console_scripts": [
Expand Down

0 comments on commit e27fcde

Please sign in to comment.