diff --git a/Makefile b/Makefile index ae776771cd2..ba87a2711a0 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ format-python: cd ${ROOT_DIR}/sdk/python; python -m black --target-version py37 feast tests lint-python: - cd ${ROOT_DIR}/sdk/python; python -m mypy feast/ tests/ + cd ${ROOT_DIR}/sdk/python; python -m mypy cd ${ROOT_DIR}/sdk/python; python -m isort feast/ tests/ --check-only cd ${ROOT_DIR}/sdk/python; python -m flake8 feast/ tests/ cd ${ROOT_DIR}/sdk/python; python -m black --check feast tests diff --git a/sdk/python/MANIFEST.in b/sdk/python/MANIFEST.in index 46b56a04d45..c5f6b71418f 100644 --- a/sdk/python/MANIFEST.in +++ b/sdk/python/MANIFEST.in @@ -1,2 +1,3 @@ recursive-include feast/protos/ *.py include feast/binaries/* +recursive-include feast py.typed *.pyi diff --git a/sdk/python/feast/py.typed b/sdk/python/feast/py.typed new file mode 100644 index 00000000000..e69de29bb2d diff --git a/sdk/python/setup.cfg b/sdk/python/setup.cfg index ae8fe14ba16..ce8f391eb16 100644 --- a/sdk/python/setup.cfg +++ b/sdk/python/setup.cfg @@ -1,4 +1,5 @@ [isort] +src_paths = feast,tests multi_line_output=3 include_trailing_comma=True force_grid_wrap=0 @@ -16,5 +17,5 @@ select = B,C,E,F,W,T4 exclude = .git,__pycache__,docs/conf.py,dist,feast/protos [mypy] -files=feast,test +files=feast,tests ignore_missing_imports=true