Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add marker for providing type annotation #1733

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ repos:
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0 # Use the sha / tag you want to point at
hooks:
- id: mypy
# additional_dependencies: [types-all]
exclude: benchmarks
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
Expand Down
Empty file added heat/py.typed
Empty file.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="heat",
packages=find_packages(exclude=("*tests*", "*benchmarks*")),
package_data={"heat.datasets": ["*.csv", "*.h5", "*.nc"]},
package_data={"heat.datasets": ["*.csv", "*.h5", "*.nc"], "heat": ["py.typed"]},
version=__version__,
description="A framework for high-performance data analytics and machine learning.",
long_description=long_description,
Expand Down
Loading