Skip to content

Commit

Permalink
feat; neat.version (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino authored Nov 1, 2024
1 parent 014289b commit 6a4c30f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cognite/neat/_session/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from cognite.client import CogniteClient

from cognite.neat import _version
from cognite.neat._issues import IssueList
from cognite.neat._rules import importers
from cognite.neat._rules._shared import ReadRules
Expand Down Expand Up @@ -34,6 +35,10 @@ def __init__(
self.prepare = PrepareAPI(self._state, verbose)
self.show = ShowAPI(self._state)

@property
def version(self) -> str:
return _version.__version__

def verify(self) -> IssueList:
output = VerifyAnyRules("continue").try_transform(self._state.input_rule)
if output.rules:
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Changes are grouped as follows:
- Handling of CDM extension
### Added
- `neat.prepare.reduce` now support dropping individual views from a `Cognite` model.
- `neat.version` returns the version of the `neat` package.

## [0.95.0] - 29-10-**2024**
### Fixed
Expand Down

0 comments on commit 6a4c30f

Please sign in to comment.