72 expressions improvements #154
python-app.yml
on: pull_request
build
36s
lint-and-format-backend
58s
Annotations
1 error and 11 warnings
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#L55
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:55:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:56:- numerator : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:57:- denominator : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:56:+ numerator: Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:57:+ denominator: Any
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/divide.py#L61
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:61:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:62:- "$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:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:61:+ return self.express({"$divide": [self.numerator, self.denominator]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:62:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:63:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/divide.py:64:+def divide(numerator: Any, denominator: Any) -> Divide:
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/pow.py#L71
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:71:-
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:72:- number : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:73:- exponent : Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:72:+ number: Any
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:73:+ exponent: Any
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/pow.py#L77
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:77:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:78:- "$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:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:77:+ return self.express({"$pow": [self.number, self.exponent]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:78:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:79:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/pow.py:80:+def pow(number: Any, exponent: Any) -> Pow:
|
lint-and-format-backend:
src/monggregate/operators/arithmetic/subtract.py#L77
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:77:- return self.express({
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:78:- "$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:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:77:+ return self.express({"$substract": [self.left, self.right]})
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:78:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:79:+
/home/runner/work/monggregate/monggregate/src/monggregate/operators/arithmetic/subtract.py:80:+def subtract(left: Any, right: Any) -> Subtract:
|
lint-and-format-backend:
src/monggregate/operators/array/filter.py#L126
[black-format] reported by reviewdog 🐶
Raw Output:
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:126:- return Filter(
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:127:- operand=operand,
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:128:- query = query,
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:129:- let = let,
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:130:- limit = limit
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:131:- )
/home/runner/work/monggregate/monggregate/src/monggregate/operators/array/filter.py:132:+ return Filter(operand=operand, query=query, let=let, limit=limit)
|
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:
|