Skip to content

Commit

Permalink
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.2…
Browse files Browse the repository at this point in the history
….1 (#561)

* chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.2.1

* chore(ruff): use `lint/format` settings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Kniewallner <[email protected]>
  • Loading branch information
renovate[bot] and mkniewallner authored Feb 11, 2024
1 parent a387265 commit 64038a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.15"
rev: "v0.2.1"
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ norecursedirs = ["data*"]
target-version = "py38"
line-length = 120
fix = true
extend-exclude = ["tests/data/*"]

[tool.ruff.format]
preview = true

[tool.ruff.lint]
select = [
# flake8-2020
"YTT",
Expand Down Expand Up @@ -163,16 +169,12 @@ ignore = [
# DoNotAssignLambda
"E731",
]
extend-exclude = ["tests/data/*"]

[tool.ruff.flake8-type-checking]
[tool.ruff.lint.flake8-type-checking]
strict = true

[tool.ruff.format]
preview = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S603"]

0 comments on commit 64038a8

Please sign in to comment.