Skip to content

128 revival complete test coverage#137

Merged
VianneyMI merged 14 commits into
mainfrom
128-revival-complete-test-coverage
Jun 12, 2025
Merged

128 revival complete test coverage#137
VianneyMI merged 14 commits into
mainfrom
128-revival-complete-test-coverage

Conversation

@Zegthor67
Copy link
Copy Markdown
Collaborator

No description provided.

@Zegthor67 Zegthor67 linked an issue Jun 12, 2025 that may be closed by this pull request
6 tasks
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

black-format

[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

expected_expression = {
"exists": {
"path": path
}
}


[black-format] reported by reviewdog 🐶

assert actual_expression == expected_expression


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

like_docs = [{"title": "Introduction to MongoDB"}, {"title": "Advanced MongoDB Usage"}]


[black-format] reported by reviewdog 🐶

expected_expression = {
"moreLikeThis": {
"like": like_docs
}
}


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

def test_range_expression_with_numeric_bounds():


[black-format] reported by reviewdog 🐶

range_op = Range(
path="price",
gt=10,
lte=100,
score={"boost": 2}
)
expected = {
"range": {
"path": "price",
"gt": 10,
"lte": 100,
"score": {"boost": 2}
}
}


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

query="^Star.*",
path="title",
allow_analyzed_field=True,
score={"constant": 1}


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

query="foo*bar?",
path="content",
allow_analyzed_field=True,
score={"boost": 5}


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

from monggregate.stages.vector_search import VectorSearch


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

"query": ["test"], # Corrected: query should be a list in expected
"path": "field"


[black-format] reported by reviewdog 🐶

expected = {
"equals": {
"value": 42,
"path": "field"
}
}


[black-format] reported by reviewdog 🐶

expected = {
"exists": {
"path": "field"
}
}


[black-format] reported by reviewdog 🐶

like=["test"], # Corrected: 'like' should be a list


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

"like": ["test"], # Corrected: 'like' should be a list in expected


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

range_op = Range(path=["field"], gt=10, lt=20) # Corrected: path should be a list


[black-format] reported by reviewdog 🐶

"path": ["field"], # Corrected: path should be a list in expected


[black-format] reported by reviewdog 🐶


[black-format] reported by reviewdog 🐶

regex = Regex(pattern="^test", path=["field"], allowAnalyzedField=False) # Corrected: path should be a list


[black-format] reported by reviewdog 🐶

"path": ["field"], # Corrected: path should be a list in expected
"allowAnalyzedField": False


[black-format] reported by reviewdog 🐶

text = Text(query=["test"], path="field") # Corrected: query should be a list


[black-format] reported by reviewdog 🐶

"query": ["test"], # Corrected: query should be a list in expected
"path": "field"


[black-format] reported by reviewdog 🐶

wildcard = Wildcard(query=["test"], path="field") # Corrected: query should be a list


[black-format] reported by reviewdog 🐶

"query": ["test"], # Corrected: query should be a list in expected


[black-format] reported by reviewdog 🐶

"allowAnalyzedField": False # Keeping this as it's a default, if it fails, remove it.


[black-format] reported by reviewdog 🐶

from monggregate.stages.search.search import Search

"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.dollar import (
AggregationVariableEnum,
Dollar,
DollarDollar,
CLUSTER_TIME,
NOW,
ROOT,
CURRENT,
REMOVE,
DESCEND,
PRUNE,
KEEP,
CONSTANTS,
S,
SS,
)

from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.fields import FieldName, FieldPath, Variable
from monggregate.pipeline import Pipeline, Match, Project
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,)
from monggregate.utils import (
to_unique_list,
validate_field_path,
validate_field_paths,
StrEnum,
)

@@ -0,0 +1,3 @@
"""Tests for `monggregate.operators` subpackage."""

from monggregate.operators.operator import Operator No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.operators.operator import Operator
from monggregate.operators.operator import Operator

from monggregate.operators.accumulators.max import Max, max
from monggregate.operators.accumulators.min import Min, min
from monggregate.operators.accumulators.push import Push, push
from monggregate.operators.accumulators.sum import Sum, sum No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.operators.accumulators.sum import Sum, sum
from monggregate.operators.accumulators.sum import Sum, sum

from monggregate.operators.arithmetic.divide import Divide
from monggregate.operators.arithmetic.multiply import Multiply
from monggregate.operators.arithmetic.pow import Pow
from monggregate.operators.arithmetic.subtract import Subtract No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.operators.arithmetic.subtract import Subtract
from monggregate.operators.arithmetic.subtract import Subtract

path=path,
token_order="any",
fuzzy=fuzzy_options,
score={"boost": 2}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
score={"boost": 2}
score={"boost": 2},

Comment on lines +24 to +29
"fuzzy": {
"maxEdits": 1,
"prefixLength": 1,
"maxExpansions": 10
},
"score": {"boost": 2}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
"fuzzy": {
"maxEdits": 1,
"prefixLength": 1,
"maxExpansions": 10
},
"score": {"boost": 2}
"fuzzy": {"maxEdits": 1, "prefixLength": 1, "maxExpansions": 10},
"score": {"boost": 2},

actual_expression = autocomplete.expression

# Assert
assert actual_expression == expected_expression No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
assert actual_expression == expected_expression
assert actual_expression == expected_expression

@@ -0,0 +1,24 @@
import pytest
from monggregate.search.operators.equals import Equals

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change

Comment on lines +12 to +18
expected_expression = {
"equals": {
"path": path,
"value": value,
"score": score
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
expected_expression = {
"equals": {
"path": path,
"value": value,
"score": score
}
}
expected_expression = {"equals": {"path": path, "value": value, "score": score}}

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

Ruff

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.accumulator.Accumulator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.accumulator.AccumulatorEnum imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.avg.Average imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.avg import Average, avg


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.avg.avg imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.avg import Average, avg


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.count.Count imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.count import Count, count


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.count.count imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.count import Count, count


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.first.First imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.first import First, first


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.first.first imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.first import First, first


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.last.Last imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.last import Last, last


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.last.last imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.last import Last, last


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.max.Max imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.max import Max, max


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.max.max imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.max import Max, max


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.min.Min imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.min import Min, min


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.min.min imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.min import Min, min


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.push.Push imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.push import Push, push


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.push.push imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.push import Push, push


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.sum.Sum imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.sum import Sum, sum


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.sum.sum imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.accumulators.sum import Sum, sum


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.add.Add imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.add import Add


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.arithmetic.ArithmeticOperatorEnum imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.arithmetic import ArithmeticOperatorEnum


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.divide.Divide imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.divide import Divide


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.multiply.Multiply imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.multiply import Multiply


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.pow.Pow imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.pow import Pow


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.arithmetic.subtract.Subtract imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.arithmetic.subtract import Subtract


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.array_to_object.ArrayToObject imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.array_to_object import ArrayToObject


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.array.Operator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.array import Operator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.filter.Filter imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.filter import Filter


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.first.First imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.first import First


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.in_.In imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.in_ import In


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.is_array.IsArray imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.is_array import IsArray


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.last.Last imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.last import Last


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.max_n.MaxN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.max_n import MaxN


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.min_n.MinN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.min_n import MinN


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.size.Size imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.size import Size


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.sort_array.SortArray imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.sort_array import SortArray


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.and_.And imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.and_ import And


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.boolean.BooleanOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.boolean import BooleanOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.not_.Not imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.not_ import Not


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.or_.Or imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.or_ import Or


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.cmp.Compare imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.cmp import Compare


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.comparator.Comparator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.comparator import Comparator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.eq.Equal imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.eq import Equal


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.gt.GreatherThan imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.gt import GreatherThan


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.gte.GreatherThanOrEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.gte import GreatherThanOrEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.lt.LowerThan imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.lt import LowerThan


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.lte.LowerThanOrEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.lte import LowerThanOrEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.ne.NotEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.ne import NotEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.cond.Cond imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.cond import Cond


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.conditional.ConditionalOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.conditional import ConditionalOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.if_null.IfNull imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.if_null import IfNull


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.switch.Switch imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.switch import Switch


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.custom.custom.CustomOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.custom.custom import CustomOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.data_size.data_size.DataSizeOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.data_size.data_size import DataSizeOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.date.date.DateOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.date.date import DateOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.date.millisecond.Millisecond imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.date.millisecond import Millisecond


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.merge_objects.MergeObjects imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.merge_objects import MergeObjects


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_.ObjectOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.object_ import ObjectOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_to_array.ObjectToArray imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.object_to_array import ObjectToArray


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.concat.Concat imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.concat import Concat


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_from_string.DateFromString imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.date_from_string import DateFromString


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_to_string.DateToString imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.date_to_string import DateToString


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.string.StringOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.string import StringOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.type_.type_.Type_ imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.type_.type_ import Type_


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.autocomplete.Autocomplete imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.autocomplete import Autocomplete


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.clause.Clause imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.clause import Clause


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.compound.Compound imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.compound import Compound


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.equals.Equals imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.equals import Equals


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.exists.Exists imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.exists import Exists


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.more_like_this.MoreLikeThis imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.more_like_this import MoreLikeThis


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.operator.SearchOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.operator import SearchOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.range.Range imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.range import Range


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.regex.Regex imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.regex import Regex


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.text.Text imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.text import Text


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.wildcard.Wildcard imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.wildcard import Wildcard


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] datetime.datetime imported but unused


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket_auto.BucketAuto imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket_auto import BucketAuto


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket.Bucket imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket import Bucket


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.count.Count imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.count import Count


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.group.Group imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.group import Group


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.limit.Limit imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.limit import Limit


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.lookup.Lookup imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.lookup import Lookup


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.match.Match imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.match import Match


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.out.Out imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.out import Out


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.project.Project imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.project import Project


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.replace_root.ReplaceRoot imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.replace_root import ReplaceRoot


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sample.Sample imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sample import Sample


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.set.Set imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.set import Set


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.skip.Skip imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.skip import Skip


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort_by_count.SortByCount imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort_by_count import SortByCount


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort.Sort imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort import Sort


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.stage.Stage imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.stage import Stage


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.union_with.UnionWith imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.union_with import UnionWith


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unset.Unset imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unset import Unset


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unwind.Unwind imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unwind import Unwind


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.vector_search.VectorSearch imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.vector_search import VectorSearch


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.BaseModel imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchBase imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchConfig imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search_meta.SearchMeta imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search_meta import SearchMeta


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search.Search imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search import Search

"""Tests for the monggregate package."""
"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.base.BaseModel imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for the monggregate package."""
"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.base.Expression imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for the monggregate package."""
"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.base.Singleton imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for the monggregate package."""
"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.base.express imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for the monggregate package."""
"""Tests for `monggregate` package."""

from monggregate.base import BaseModel, Expression, Singleton, express, isbasemodel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.base.isbasemodel imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.fields import FieldName, FieldPath, Variable
from monggregate.pipeline import Pipeline, Match, Project
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.utils.to_unique_list imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.fields import FieldName, FieldPath, Variable
from monggregate.pipeline import Pipeline, Match, Project
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.utils.validate_field_path imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.fields import FieldName, FieldPath, Variable
from monggregate.pipeline import Pipeline, Match, Project
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.utils.validate_field_paths imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.dollar import (AggregationVariableEnum,Dollar,DollarDollar,CLUSTER_TIME,NOW,ROOT,CURRENT,REMOVE,DESCEND,PRUNE,KEEP,CONSTANTS,S,SS,)
from monggregate.fields import FieldName, FieldPath, Variable
from monggregate.pipeline import Pipeline, Match, Project
from monggregate.utils import (to_unique_list,validate_field_path,validate_field_paths,StrEnum,) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.utils.StrEnum imported but unused; consider removing, adding to __all__, or using a redundant alias

@@ -0,0 +1,3 @@
"""Tests for `monggregate.operators` subpackage."""

from monggregate.operators.operator import Operator No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.operator.Operator imported but unused; consider removing, adding to __all__, or using a redundant alias

@VianneyMI VianneyMI self-requested a review June 12, 2025 20:19
Comment on lines +22 to +27
assert not missing_operators_in_clause, (
f"Operators in operator map but not in clause: {missing_operators_in_clause}"
)
assert not missing_operators_in_operator_map, (
f"Operators in clause but not in operator map: {missing_operators_in_operator_map}"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
assert not missing_operators_in_clause, (
f"Operators in operator map but not in clause: {missing_operators_in_clause}"
)
assert not missing_operators_in_operator_map, (
f"Operators in clause but not in operator map: {missing_operators_in_operator_map}"
)
assert (
not missing_operators_in_clause
), f"Operators in operator map but not in clause: {missing_operators_in_clause}"
assert (
not missing_operators_in_operator_map
), f"Operators in clause but not in operator map: {missing_operators_in_operator_map}"

@@ -0,0 +1,19 @@
from monggregate.search.operators.exists import Exists

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change

Comment on lines +9 to +13
expected_expression = {
"exists": {
"path": path
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
expected_expression = {
"exists": {
"path": path
}
}
expected_expression = {"exists": {"path": path}}

actual_expression = exists_op.expression

# Assert
assert actual_expression == expected_expression No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
assert actual_expression == expected_expression
assert actual_expression == expected_expression

@@ -0,0 +1,19 @@
from monggregate.search.operators.more_like_this import MoreLikeThis

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change

Comment on lines +6 to +9
query="foo*bar?",
path="content",
allow_analyzed_field=True,
score={"boost": 5}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
query="foo*bar?",
path="content",
allow_analyzed_field=True,
score={"boost": 5}
query="foo*bar?", path="content", allow_analyzed_field=True, score={"boost": 5}

"query": "foo*bar?",
"path": "content",
"allowAnalyzedField": True,
"score": {"boost": 5}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
"score": {"boost": 5}
"score": {"boost": 5},

expression = wildcard_op.expression

# Assert
assert expression == expected No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
assert expression == expected
assert expression == expected

from monggregate.stages.union_with import UnionWith
from monggregate.stages.unset import Unset
from monggregate.stages.unwind import Unwind
from monggregate.stages.vector_search import VectorSearch No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.stages.vector_search import VectorSearch
from monggregate.stages.vector_search import VectorSearch


from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig
from monggregate.stages.search.search_meta import SearchMeta
from monggregate.stages.search.search import Search No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[black-format] reported by reviewdog 🐶

Suggested change
from monggregate.stages.search.search import Search
from monggregate.stages.search.search import Search

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

Ruff

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.last.Last imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.last import Last


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.max_n.MaxN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.max_n import MaxN


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.min_n.MinN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.min_n import MinN


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.size.Size imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.size import Size


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.sort_array.SortArray imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.sort_array import SortArray


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.and_.And imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.and_ import And


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.boolean.BooleanOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.boolean import BooleanOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.not_.Not imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.not_ import Not


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.boolean.or_.Or imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.boolean.or_ import Or


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.cmp.Compare imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.cmp import Compare


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.comparator.Comparator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.comparator import Comparator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.eq.Equal imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.eq import Equal


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.gt.GreatherThan imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.gt import GreatherThan


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.gte.GreatherThanOrEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.gte import GreatherThanOrEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.lt.LowerThan imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.lt import LowerThan


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.lte.LowerThanOrEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.lte import LowerThanOrEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.comparison.ne.NotEqual imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.comparison.ne import NotEqual


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.cond.Cond imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.cond import Cond


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.conditional.ConditionalOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.conditional import ConditionalOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.if_null.IfNull imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.if_null import IfNull


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.conditional.switch.Switch imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.conditional.switch import Switch


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.custom.custom.CustomOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.custom.custom import CustomOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.data_size.data_size.DataSizeOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.data_size.data_size import DataSizeOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.date.date.DateOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.date.date import DateOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.date.millisecond.Millisecond imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.date.millisecond import Millisecond


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.merge_objects.MergeObjects imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.merge_objects import MergeObjects


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_.ObjectOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.object_ import ObjectOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_to_array.ObjectToArray imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.objects.object_to_array import ObjectToArray


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.concat.Concat imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.concat import Concat


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_from_string.DateFromString imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.date_from_string import DateFromString


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_to_string.DateToString imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.date_to_string import DateToString


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.string.StringOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.string import StringOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.type_.type_.Type_ imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.type_.type_ import Type_


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.autocomplete.Autocomplete imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.autocomplete import Autocomplete


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.clause.Clause imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.clause import Clause


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.compound.Compound imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.compound import Compound


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.equals.Equals imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.equals import Equals


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.exists.Exists imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.exists import Exists


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.more_like_this.MoreLikeThis imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.more_like_this import MoreLikeThis


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.operator.SearchOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.operator import SearchOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.range.Range imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.range import Range


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.regex.Regex imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.regex import Regex


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.text.Text imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.text import Text


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.wildcard.Wildcard imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.wildcard import Wildcard


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] datetime.datetime imported but unused


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket_auto.BucketAuto imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket_auto import BucketAuto


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket.Bucket imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket import Bucket


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.count.Count imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.count import Count


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.group.Group imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.group import Group


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.limit.Limit imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.limit import Limit


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.lookup.Lookup imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.lookup import Lookup


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.match.Match imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.match import Match


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.out.Out imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.out import Out


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.project.Project imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.project import Project


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.replace_root.ReplaceRoot imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.replace_root import ReplaceRoot


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sample.Sample imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sample import Sample


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.set.Set imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.set import Set


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.skip.Skip imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.skip import Skip


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort_by_count.SortByCount imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort_by_count import SortByCount


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort.Sort imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort import Sort


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.stage.Stage imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.stage import Stage


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.union_with.UnionWith imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.union_with import UnionWith


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unset.Unset imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unset import Unset


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unwind.Unwind imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unwind import Unwind


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.vector_search.VectorSearch imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.vector_search import VectorSearch


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.BaseModel imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchBase imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchConfig imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search_meta.SearchMeta imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search_meta import SearchMeta


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search.Search imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search import Search

@@ -0,0 +1,11 @@
"""Tests for `monggregate.operators.accumulators` subpackage."""

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.accumulator.Accumulator imported but unused; consider removing, adding to __all__, or using a redundant alias

@@ -0,0 +1,11 @@
"""Tests for `monggregate.operators.accumulators` subpackage."""

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.accumulator.AccumulatorEnum imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for `monggregate.operators.accumulators` subpackage."""

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum
from monggregate.operators.accumulators.avg import Average, avg
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.avg.Average imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for `monggregate.operators.accumulators` subpackage."""

from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum
from monggregate.operators.accumulators.avg import Average, avg
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.avg.avg imported but unused; consider removing, adding to __all__, or using a redundant alias


from monggregate.operators.accumulators.accumulator import Accumulator, AccumulatorEnum
from monggregate.operators.accumulators.avg import Average, avg
from monggregate.operators.accumulators.count import Count, count
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.accumulators.count.Count imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for `monggregate.operators.array` subpackage."""

from monggregate.operators.array.array_to_object import ArrayToObject
from monggregate.operators.array.array import Operator
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.array.Operator imported but unused; consider removing, adding to __all__, or using a redundant alias


from monggregate.operators.array.array_to_object import ArrayToObject
from monggregate.operators.array.array import Operator
from monggregate.operators.array.filter import Filter
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.filter.Filter imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.array_to_object import ArrayToObject
from monggregate.operators.array.array import Operator
from monggregate.operators.array.filter import Filter
from monggregate.operators.array.first import First
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.first.First imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.array import Operator
from monggregate.operators.array.filter import Filter
from monggregate.operators.array.first import First
from monggregate.operators.array.in_ import In
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.in_.In imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.filter import Filter
from monggregate.operators.array.first import First
from monggregate.operators.array.in_ import In
from monggregate.operators.array.is_array import IsArray
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.is_array.IsArray imported but unused; consider removing, adding to __all__, or using a redundant alias

@@ -0,0 +1,25 @@
from monggregate.search.operators.wildcard import Wildcard

def test_wildcard_expression_basic():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Function is missing a return type annotation [no-untyped-def]

@@ -0,0 +1,25 @@
from monggregate.search.operators.wildcard import Wildcard

def test_wildcard_expression_basic():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [mypy] reported by reviewdog 🐶
Use "-> None" if function does not return a value

@@ -0,0 +1,24 @@
from monggregate.search.operators.text import Text

def test_text_expression_with_fuzzy_and_synonyms():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Function is missing a return type annotation [no-untyped-def]

@@ -0,0 +1,24 @@
from monggregate.search.operators.text import Text

def test_text_expression_with_fuzzy_and_synonyms():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [mypy] reported by reviewdog 🐶
Use "-> None" if function does not return a value

@@ -0,0 +1,25 @@
from monggregate.search.operators.regex import Regex

def test_regex_expression_basic():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Function is missing a return type annotation [no-untyped-def]

from datetime import datetime
from monggregate.search.operators.range import Range

def test_range_expression_with_numeric_bounds():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [mypy] reported by reviewdog 🐶
Use "-> None" if function does not return a value

import pytest
from monggregate.search.operators.equals import Equals

def test_equals_expression():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Function is missing a return type annotation [no-untyped-def]

import pytest
from monggregate.search.operators.equals import Equals

def test_equals_expression():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [mypy] reported by reviewdog 🐶
Use "-> None" if function does not return a value

from monggregate.search.operators.autocomplete import Autocomplete
from monggregate.search.commons import FuzzyOptions

def test_autocomplete_expression():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Function is missing a return type annotation [no-untyped-def]

from monggregate.search.operators.autocomplete import Autocomplete
from monggregate.search.commons import FuzzyOptions

def test_autocomplete_expression():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [mypy] reported by reviewdog 🐶
Use "-> None" if function does not return a value

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

Ruff

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.string.StringOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.strings.string import StringOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.type_.type_.Type_ imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.type_.type_ import Type_


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.autocomplete.Autocomplete imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.autocomplete import Autocomplete


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.clause.Clause imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.clause import Clause


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.compound.Compound imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.compound import Compound


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.equals.Equals imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.equals import Equals


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.exists.Exists imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.exists import Exists


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.more_like_this.MoreLikeThis imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.more_like_this import MoreLikeThis


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.operator.SearchOperator imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.operator import SearchOperator


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.range.Range imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.range import Range


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.regex.Regex imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.regex import Regex


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.text.Text imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.text import Text


[Ruff] reported by reviewdog 🐶
F401 monggregate.search.operators.wildcard.Wildcard imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.search.operators.wildcard import Wildcard


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] pytest imported but unused


[Ruff] reported by reviewdog 🐶
F401 [*] datetime.datetime imported but unused


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket_auto.BucketAuto imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket_auto import BucketAuto


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.bucket.Bucket imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.bucket import Bucket


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.count.Count imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.count import Count


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.group.Group imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.group import Group


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.limit.Limit imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.limit import Limit


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.lookup.Lookup imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.lookup import Lookup


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.match.Match imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.match import Match


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.out.Out imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.out import Out


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.project.Project imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.project import Project


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.replace_root.ReplaceRoot imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.replace_root import ReplaceRoot


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sample.Sample imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sample import Sample


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.set.Set imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.set import Set


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.skip.Skip imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.skip import Skip


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort_by_count.SortByCount imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort_by_count import SortByCount


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.sort.Sort imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.sort import Sort


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.stage.Stage imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.stage import Stage


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.union_with.UnionWith imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.union_with import UnionWith


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unset.Unset imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unset import Unset


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.unwind.Unwind imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.unwind import Unwind


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.vector_search.VectorSearch imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.vector_search import VectorSearch


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.BaseModel imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchBase imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.base.SearchConfig imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.base import BaseModel, SearchBase, SearchConfig


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search_meta.SearchMeta imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search_meta import SearchMeta


[Ruff] reported by reviewdog 🐶
F401 monggregate.stages.search.search.Search imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.stages.search.search import Search

from monggregate.operators.array.first import First
from monggregate.operators.array.in_ import In
from monggregate.operators.array.is_array import IsArray
from monggregate.operators.array.last import Last
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.last.Last imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.in_ import In
from monggregate.operators.array.is_array import IsArray
from monggregate.operators.array.last import Last
from monggregate.operators.array.max_n import MaxN
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.max_n.MaxN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.is_array import IsArray
from monggregate.operators.array.last import Last
from monggregate.operators.array.max_n import MaxN
from monggregate.operators.array.min_n import MinN
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.min_n.MinN imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.last import Last
from monggregate.operators.array.max_n import MaxN
from monggregate.operators.array.min_n import MinN
from monggregate.operators.array.size import Size
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.size.Size imported but unused; consider removing, adding to __all__, or using a redundant alias

from monggregate.operators.array.max_n import MaxN
from monggregate.operators.array.min_n import MinN
from monggregate.operators.array.size import Size
from monggregate.operators.array.sort_array import SortArray No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.array.sort_array.SortArray imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for `monggregate.operators.objects` subpackage."""

from monggregate.operators.objects.merge_objects import MergeObjects
from monggregate.operators.objects.object_ import ObjectOperator
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_.ObjectOperator imported but unused; consider removing, adding to __all__, or using a redundant alias


from monggregate.operators.objects.merge_objects import MergeObjects
from monggregate.operators.objects.object_ import ObjectOperator
from monggregate.operators.objects.object_to_array import ObjectToArray No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.objects.object_to_array.ObjectToArray imported but unused; consider removing, adding to __all__, or using a redundant alias

@@ -0,0 +1,6 @@
"""Tests for `monggregate.operators.strings` subpackage."""

from monggregate.operators.strings.concat import Concat
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.concat.Concat imported but unused; consider removing, adding to __all__, or using a redundant alias

"""Tests for `monggregate.operators.strings` subpackage."""

from monggregate.operators.strings.concat import Concat
from monggregate.operators.strings.date_from_string import DateFromString
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_from_string.DateFromString imported but unused; consider removing, adding to __all__, or using a redundant alias


from monggregate.operators.strings.concat import Concat
from monggregate.operators.strings.date_from_string import DateFromString
from monggregate.operators.strings.date_to_string import DateToString
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Ruff] reported by reviewdog 🐶
F401 monggregate.operators.strings.date_to_string.DateToString imported but unused; consider removing, adding to __all__, or using a redundant alias

name : FacetName = ""

path: str
name: FacetName = ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Incompatible types in assignment (expression has type "str", variable has type "FacetName") [assignment]

"facets":{}
}
}
_statement = {"facet": {"facets": {}}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Need type annotation for "_statement" [var-annotated]

path=path,
boundaries=boundaries,
default=default
name=name, path=path, boundaries=boundaries, default=default
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Argument "boundaries" to "NumericFacet" of "Facet" has incompatible type "list[int | float] | list[datetime] | None"; expected "list[int | float]" [arg-type]

path=path,
boundaries=boundaries,
default=default
name=name, path=path, boundaries=boundaries, default=default
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Argument "boundaries" to "DateFacet" of "Facet" has incompatible type "list[int | float] | list[datetime] | None"; expected "list[datetime]" [arg-type]

}

return _constructors_map[operator_name] No newline at end of file
return _constructors_map[operator_name]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [mypy] reported by reviewdog 🐶
Incompatible return value type (got "function", expected "Callable[..., Self]") [return-value]

Copy link
Copy Markdown
Owner

@VianneyMI VianneyMI left a comment

Choose a reason for hiding this comment

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

Ok now the serious stuff begins !

@VianneyMI VianneyMI merged commit cffc059 into main Jun 12, 2025
2 checks passed
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.

Revival

2 participants