Skip to content

Commit

Permalink
Exclude changelog from pre-commit spellcheck (#1083)
Browse files Browse the repository at this point in the history
Exclude the changelog from the pre-commit codespell check- this is to prevent CI failures after release when the changelog is updated, as suggested here rapidsai/cudf#12097 (review)

This also exports the `__version__` for pylibraft / raft_dask, which was missing previously

Authors:
  - Ben Frederickson (https://github.com/benfred)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #1083
  • Loading branch information
benfred authored Dec 8, 2022
1 parent 9ec9b70 commit 266deb5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
exclude: (?x)^(^CHANGELOG.md$)


default_language_version:
python: python3
5 changes: 5 additions & 0 deletions python/pylibraft/pylibraft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions python/raft-dask/raft_dask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 266deb5

Please sign in to comment.