diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c244200d1..f48dff11cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -97,6 +97,8 @@ repos: rev: v2.1.0 hooks: - id: codespell + exclude: (?x)^(^CHANGELOG.md$) + default_language_version: python: python3 diff --git a/python/pylibraft/pylibraft/__init__.py b/python/pylibraft/pylibraft/__init__.py index 273b4497cc..1124c64102 100644 --- a/python/pylibraft/pylibraft/__init__.py +++ b/python/pylibraft/pylibraft/__init__.py @@ -12,3 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +from pylibraft._version import get_versions + +__version__ = get_versions()["version"] +del get_versions diff --git a/python/raft-dask/raft_dask/__init__.py b/python/raft-dask/raft_dask/__init__.py index 5face05ef3..092e68670a 100644 --- a/python/raft-dask/raft_dask/__init__.py +++ b/python/raft-dask/raft_dask/__init__.py @@ -13,4 +13,9 @@ # limitations under the License. # +from raft_dask._version import get_versions + from .include_test import raft_include_test + +__version__ = get_versions()["version"] +del get_versions