-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
389a4c3
to
406eda9
Compare
51c1e9f
to
bae77f0
Compare
@@ -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] |
There was a problem hiding this comment.
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 ?
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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:
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__}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same no fstring
No description provided.