From f0cc7b8f5b8590b40f76489cc03e4c5b39f04d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Gr=C3=BCbel?= Date: Mon, 18 Jul 2022 19:26:38 +0200 Subject: [PATCH] add py.typed file to enable type hints for package consumers (#579) * add py.typed file to enable type hints for package consumers * fix lint issues --- detect_secrets/py.typed | 0 setup.py | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 detect_secrets/py.typed diff --git a/detect_secrets/py.typed b/detect_secrets/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/setup.py b/setup.py index 49f16f820..0ba463850 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,11 @@ def get_version(): 'requests', ], include_package_data=True, + package_data={ + 'detect_secrets': [ + 'py.typed', + ], + }, extras_require={ 'word_list': [ 'pyahocorasick', @@ -58,5 +63,6 @@ def get_version(): 'Environment :: Console', 'Operating System :: OS Independent', 'Development Status :: 5 - Production/Stable', + 'Typing :: Typed', ], )