72 expressions improvements #156
python-app.yml
on: pull_request
build
34s
lint-and-format-backend
48s
Annotations
2 errors and 11 warnings
build
Process completed with exit code 1.
|
lint-and-format-backend
reviewdog: Too many results (annotations) in diff.
You may miss some annotations due to GitHub limitation for annotation created by logging command.
Please check GitHub Actions log console to see all results.
Limitation:
- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren't created by users)
Source: https://github.com/orgs/community/discussions/26680#discussioncomment-3252835
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint-and-format-backend:
src/monggregate/operators/accumulators/count.py#L69
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/accumulators/count.py:69:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/accumulators/count.py:70:-
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/divide.py#L56
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:56:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:57:- numerator : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:58:- denominator : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:57:+ numerator: Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:58:+ denominator: Any
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/divide.py#L62
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:62:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:63:- "$divide" : [self.numerator, self.denominator]
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:64:- })
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:65:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:66:-def divide(numerator:Any, denominator:Any)->Divide:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:62:+ return self.express({"$divide": [self.numerator, self.denominator]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:63:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:64:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:65:+def divide(numerator: Any, denominator: Any) -> Divide:
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/pow.py#L72
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:72:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:73:- number : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:74:- exponent : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:73:+ number: Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:74:+ exponent: Any
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/pow.py#L78
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:78:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:79:- "$pow" : [self.number, self.exponent]
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:80:- })
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:81:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:82:-def pow(number:Any, exponent:Any)->Pow:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:78:+ return self.express({"$pow": [self.number, self.exponent]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:79:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:80:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:81:+def pow(number: Any, exponent: Any) -> Pow:
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/subtract.py#L78
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:78:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:79:- "$substract" : [self.left, self.right]
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:80:- })
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:81:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:82:-def subtract(left:Any, right:Any)->Subtract:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:78:+ return self.express({"$substract": [self.left, self.right]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:79:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:80:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:81:+def subtract(left: Any, right: Any) -> Subtract:
|
lint-and-format-backend:
src/monggregate/expressions.py#L71
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:71:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:72:- #---------------------------------------------------
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:71:+
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:72:+ # ---------------------------------------------------
|
lint-and-format-backend:
src/monggregate/expressions.py#L127
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:127:- return self.__class__(content=accumulators.Sum(operand=self))
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:128:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:129:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:130:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:131:- #---------------------------------------------------
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:113:+ return self.__class__(content=accumulators.Sum(operand=self))
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:114:+
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:115:+ # ---------------------------------------------------
|
lint-and-format-backend:
src/monggregate/expressions.py#L264
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:264:- def filter(self, query:Self, let:str|None=None, limit:int|None=None)->Self:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:265:- """"Creates a $filter expression"""
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:266:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:267:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:268:- return self.__class__(content=array.Filter(
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:269:- operand=self,
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:270:- query=query,
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:271:- let=let,
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:272:- limit=limit
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:273:- ))
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:274:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:275:-
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:276:- def is_array(self)->Self:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:226:+ def filter(
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:227:+ self, query: Self, let: str | None = None, limit: int | None = None
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:228:+ ) -> Self:
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:229:+ """ "Creates a $filter expression"""
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:230:+
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:231:+ return self.__class__(
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:232:+ content=array.Filter(operand=self, query=query, let=let, limit=limit)
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:233:+ )
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:234:+
/home/runner/work/monggregate/monggregate/src/monggregate/expressions.py:235:+ def is_array(self) -> Self:
|
lint-and-format-backend:
src/monggregate/operators/array/in_.py#L64
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/in_.py:64:- left : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/in_.py:65:- right : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/in_.py:66:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/in_.py:65:+ left: Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/in_.py:66:+ right: Any
|