refactor: add py3.12 and py3.13 to tests#1212
Conversation
|
@shania-m I'm updating the tests here to run py3.12 and py3.13 We would love a release of the DP as soon as possible after this merges! Thanks! |
| other1._median_abs_dev_is_enabled and other2._median_abs_dev_is_enabled | ||
| ) | ||
|
|
||
| @property |
There was a problem hiding this comment.
biggest change is here. but it matches the other class functionalities of being properties and not methods.
| :return: | ||
| """ | ||
| profile = NumericStatsMixin.profile(self) | ||
| profile = cast(dict, NumericStatsMixin.profile.__get__(self, type(self))) |
There was a problem hiding this comment.
you can see the change have an effect here from making it a property instead of a method
| :return: | ||
| """ | ||
| return NumericStatsMixin.profile(self) | ||
| return cast(dict, NumericStatsMixin.profile.__get__(self, type(self))) |
There was a problem hiding this comment.
you can see the change have an effect here from making it a property instead of a method
| :rtype: Profile | ||
| """ | ||
| calcs_dict_keys = self._NumericStatsMixin__calculations.keys() | ||
| profile = self.profile() |
There was a problem hiding this comment.
you can see the change have an effect here from making it a property instead of a method
| pass | ||
|
|
||
| def _need_to_reconstruct_model(self) -> bool: | ||
| pass |
There was a problem hiding this comment.
a change, but should be inconsequential and matches the typing
previously would return None now it returns False
| pass | ||
|
|
||
| def _need_to_reconstruct_model(self) -> bool: | ||
| pass |
There was a problem hiding this comment.
a change, but should be inconsequential and matches the typing
previously would return None now it returns False
| MCM[:, 1, 0] = np.sum( | ||
| conf_matrix * (np.ones(num_labels) - np.eye(num_labels)), axis=1 | ||
| non_diagonal_mask = cast( | ||
| np.ndarray, np.logical_not(np.eye(num_labels, dtype=bool)).astype(np.int64) |
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11"] | ||
| python-version: ["3.10", "3.11", "3.12", "3.13"] |
There was a problem hiding this comment.
added newest python
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4.3.1 |
There was a problem hiding this comment.
C1 requires commit sha? was denied v4 and v5 on first commit
| @@ -1,5 +1,5 @@ | |||
| [tox] | |||
| envlist = py39, py310, py311, pypi-description, manifest, precom | |||
| envlist = py310, py311, py312, py313, pypi-description, manifest, precom | |||
There was a problem hiding this comment.
remove old and add new
| line_length=88 | ||
|
|
||
| [mypy] | ||
| files = dataprofiler |
There was a problem hiding this comment.
mypy will actually utilize this in our testing now
| # https://github.com/pre-commit/mirrors-mypy | ||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||
| rev: v0.982 | ||
| rev: v1.11.2 |
| rev: v1.11.2 | ||
| hooks: | ||
| - id: mypy | ||
| exclude: (^dataprofiler/tests/|^resources/|^examples|venv*/|versioneer.py|dataprofiler/_version.py|_docs/) |
There was a problem hiding this comment.
this exclude is for pre-commit, but mypy doesn't utilize it hence the updates here
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
@shania-m this is ready for review. Looks like we needed a lot of mypy updates and some almostequal updtes for the new py versions |
| # popping vocab and comparing as set below since order is random | ||
| serialized_vocab = serialized_dict["data"].pop("vocab") | ||
|
|
||
| serialized = json.dumps(serialized_dict) |
There was a problem hiding this comment.
tests are the same, but now using almostequal for the assert on floats
|
@shania-m this is ready for review! |
this pr: