Skip to content

Commit

Permalink
[ci] Update ruff config format and bump ruff version
Browse files Browse the repository at this point in the history
Fix deprecation warning triggered by old ruff config
  • Loading branch information
tysmith committed Dec 2, 2024
1 parent 128a474 commit 086f08d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.0
rev: v0.8.1
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
target-version = ["py38"]

[tool.ruff]
ignore = []
line-length = 88
target-version = "py38"

[tool.ruff.lint]
ignore = []
select = [
# flake8
"E",
Expand All @@ -16,4 +19,3 @@ select = [
# includes yesqa
"RUF",
]
target-version = "py38"
8 changes: 5 additions & 3 deletions services/fuzzing-decision/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ disable = [
log_level = "DEBUG"

[tool.ruff]
ignore = []
line-length = 88
target-version = "py38"

[tool.ruff.lint]
ignore = []
select = [
# flake8
"E",
Expand All @@ -60,7 +63,6 @@ select = [
# includes yesqa
"RUF",
]
target-version = "py38"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["fuzzing_decision"]
6 changes: 3 additions & 3 deletions services/grizzly-reduce-monitor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ filterwarnings = [
line-length = 88
target-version = "py38"

[lint.select]
ruff = [
[tool.ruff.lint]
select = [
# flake8
"E",
"F",
Expand All @@ -61,5 +61,5 @@ ruff = [
"RUF",
]

[lint.isort]
[tool.ruff.lint.isort]
known-first-party = ["grizzly_reduce_monitor"]
5 changes: 3 additions & 2 deletions services/grizzly/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ ignore_missing_imports = true
max-line-length = 88

[tool.ruff]
ignore = []
line-length = 88
target-version = "py38"

[tool.ruff.lint]
select = [
# flake8
"E",
Expand All @@ -30,4 +32,3 @@ select = [
# includes yesqa
"RUF",
]
target-version = "py38"
7 changes: 4 additions & 3 deletions services/orion-builder/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ filterwarnings = [
]

[tool.ruff]
ignore = []
line-length = 88
target-version = "py38"

[tool.ruff.lint]
select = [
# flake8
"E",
Expand All @@ -59,7 +61,6 @@ select = [
# includes yesqa
"RUF",
]
target-version = "py38"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["orion_builder"]

0 comments on commit 086f08d

Please sign in to comment.