Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Task List and filters to Python #416

Merged
merged 11 commits into from
Sep 26, 2023
Merged

Conversation

dbrasseur-aneo
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
769 695 90% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: a82e08f by action🐍

@dbrasseur-aneo dbrasseur-aneo marked this pull request as ready for review September 22, 2023 15:06
@dbrasseur-aneo dbrasseur-aneo changed the title feat: Add Task List to Python feat: Add Task List and filters to Python Sep 22, 2023
@CLAassistant
Copy link

CLAassistant commented Sep 25, 2023

CLA assistant check
All committers have signed the CLA.

aneojgurhem
aneojgurhem previously approved these changes Sep 25, 2023
examples/python/client.py Show resolved Hide resolved
@@ -32,7 +32,7 @@ mkdir -p $ARMONIK_WORKER $ARMONIK_CLIENT $ARMONIK_COMMON $PACKAGE_PATH
python -m pip install --upgrade pip
python -m venv $PYTHON_VENV
source $PYTHON_VENV/bin/activate
python -m pip install build grpcio grpcio-tools click pytest setuptools_scm[toml]
python -m pip install build grpcio==1.56.2 grpcio-tools==1.56.2 click pytest setuptools_scm[toml]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment explaining why the grpc version is fixed ?

packages/python/src/armonik/common/filter.py Outdated Show resolved Hide resolved
NotImplementedError if the given operator is not available for the given class
"""
if self.is_true_conjunction() or self.is_true_disjunction():
raise Exception(f"Cannot apply operator to a disjunction or a conjunction")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't knee a fstring here

"""
if self.__class__.value_type_ is None or isinstance(value, self.__class__.value_type_):
return
raise Exception(f"Expected value type {str(self.__class__.value_type_)} for field {str(self.field)}, got {str(type(value))} instead")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is a bad idea to use fstring in exception:

https://docs.astral.sh/ruff/rules/f-string-in-exception/

raise Exception(f"Cannot apply operator to a disjunction or a conjunction")
self._verify_value(value)
if operator is None:
raise NotImplementedError(f"Operator {operator_str} is not available for {self.__class__.__name__}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same no fstring

@aneojgurhem aneojgurhem merged commit ceeb413 into main Sep 26, 2023
30 checks passed
@aneojgurhem aneojgurhem deleted the db/addTaskListPython branch September 26, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants