Skip to content

Commit

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

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.14 to 0.2.0.
- [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.1.14...v0.2.0)

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

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

* fix: adapt config to ruff v2

Signed-off-by: Luka Peschke <[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 Feb 6, 2024
1 parent 1d02a9f commit 95a367f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
39 changes: 19 additions & 20 deletions server/poetry.lock

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

16 changes: 9 additions & 7 deletions 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.1.1"
ruff = "^0.2.0"
pre-commit = "^3.4.0"

[tool.poetry.extras]
Expand Down Expand Up @@ -81,6 +81,12 @@ markers = [
[tool.ruff]
# a bit longer to allow for some lines which black would not wrap
line-length = 120
# Exclude a variety of commonly ignored directories.
exclude = [".git", ".direnv"]
# Assume Python 3.11.
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "UP", "N", "C", "B", "I001", "S"]
ignore = [
"S101", # allow use of assert
Expand All @@ -90,15 +96,11 @@ ignore = [
"N818", # allow exceptions that do not end with the `Error` suffix
]

# Exclude a variety of commonly ignored directories.
exclude = [".git", ".direnv"]
# Assume Python 3.11.
target-version = "py311"

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"

[tool.ruff.pep8-naming]
[tool.ruff.lint.pep8-naming]
# Allow a few decorators to trigger class method treatment.
classmethod-decorators = [
"classmethod",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def translate_evolution(step: EvolutionStep) -> list[MongoStep]:
"cond": {
"$and": [
{"$eq": ["$_VQB_DATE_PREV", f"$$item.{step.date_col}"]},
{"$eq": [f"${col}", f"$$item.{col}"] for col in step.index_columns},
# FIXME: this is a bug
{"$eq": [f"${col}", f"$$item.{col}"] for col in step.index_columns}, # noqa: B035
],
},
},
Expand Down

0 comments on commit 95a367f

Please sign in to comment.