Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.2.1 to 0.3.2 in /server (#2034)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump ruff from 0.2.1 to 0.3.2 in /server

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.1 to 0.3.2.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.2.1...v0.3.2)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: make format

Signed-off-by: Luka Peschke <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Luka Peschke <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luka Peschke <[email protected]>
  • Loading branch information
dependabot[bot] and lukapeschke authored Mar 11, 2024
1 parent d81b00f commit fc76739
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 37 deletions.
2 changes: 1 addition & 1 deletion server/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DEFAULT_GOAL := all
ruff = ruff src tests playground.py
ruff = ruff check src tests playground.py
format = ruff format src tests playground.py

.PHONY: clean
Expand Down
1 change: 1 addition & 0 deletions server/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- for snowflake, SNOWFLAKE_USER, SNOWFLAKE_PASSWORD, SNOWFLAKE_ACCOUNT and SNOWFLAKE_DATABASE
- for postgresql, POSTGRESQL_CONNECTION_STRING
"""

import json
import os
from contextlib import suppress
Expand Down
38 changes: 19 additions & 19 deletions server/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ psycopg2 = "^2.9.7"
pymongo = ">=4.2.0"
sqlalchemy-redshift = ">=0.8.11,<1"
PyYAML = "^6.0"
ruff = "^0.2.0"
ruff = ">=0.2,<0.4"
pre-commit = "^3.4.0"

[tool.poetry.extras]
Expand Down
3 changes: 1 addition & 2 deletions server/src/weaverbird/backends/pandas_executor/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ def __call__(
df: DataFrame,
domain_retriever: DomainRetriever | None,
execute_pipeline: PipelineExecutor | None,
) -> DataFrame:
...
) -> DataFrame: ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
from weaverbird.pipeline.types import ColumnName


class BaseCondition(BaseModel):
...
class BaseCondition(BaseModel): ...


class ComparisonCondition(BaseCondition):
Expand Down
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/absolutevalue.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ class AbsoluteValueStep(BaseStep):
new_column: ColumnName


class AbsoluteValueStepWithVariable(AbsoluteValueStep, StepWithVariablesMixin):
...
class AbsoluteValueStepWithVariable(AbsoluteValueStep, StepWithVariablesMixin): ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/date_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ class DateExtractStep(BaseStep):
new_column_name: ColumnName | None = None


class DateExtractStepWithVariable(DateExtractStep, StepWithVariablesMixin):
...
class DateExtractStepWithVariable(DateExtractStep, StepWithVariablesMixin): ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/fillna.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ def handle_legacy_syntax(cls, values):
return values


class FillnaStepWithVariable(FillnaStep, StepWithVariablesMixin):
...
class FillnaStepWithVariable(FillnaStep, StepWithVariablesMixin): ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ class FormulaStep(BaseStep):
formula: str


class FormulaStepWithVariable(FormulaStep, StepWithVariablesMixin):
...
class FormulaStepWithVariable(FormulaStep, StepWithVariablesMixin): ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ class SplitStep(BaseStep):
number_cols_to_keep: int = Field(gt=0)


class SplitStepWithVariable(SplitStep, StepWithVariablesMixin):
...
class SplitStepWithVariable(SplitStep, StepWithVariablesMixin): ...
3 changes: 1 addition & 2 deletions server/src/weaverbird/pipeline/steps/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ def _text_validator(cls, value):
return value


class TextStepWithVariable(TextStep, StepWithVariablesMixin):
...
class TextStepWithVariable(TextStep, StepWithVariablesMixin): ...
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
`CREATE TABLE `beers.beers_tiny` AS SELECT * FROM `beers.beers` ORDER BY brewing_date LIMIT 10
```
"""

import json
from os import environ

Expand Down
1 change: 1 addition & 0 deletions server/tests/test_pipeline_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
TODO move to tests/backends/pandas_executor
"""

import json
from functools import partial
from os import path
Expand Down

0 comments on commit fc76739

Please sign in to comment.