Skip to content

Commit

Permalink
style: change minimum python versoin in Ruff
Browse files Browse the repository at this point in the history
Ruff does not support multiple target versions; it only supports the minimum versions. Since we want to support Python 3.11 in CI, it is better to change the target version.
  • Loading branch information
lucasgomide committed Jun 21, 2024
1 parent 3b4f36f commit 69bd989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pytest-random-order = "*"

[tool.ruff]
line-length = 120
target-version = "py312"
target-version = "py311"

[tool.ruff.lint]
select = ["RUF", "I", "PL", "F", "COM", "UP", "DJ", "T10", "T20", "DTZ", "SIM", "TID", "PTH", "ERA", "TRY"]
ignore = ["COM812", "PLR2004", "PLR0911", "PLR0913", "PLR0915", "DJ001", "DJ001", "DJ008", "TRY003", "PLR0912", "RUF012"]
ignore = ["COM812", "PLR2004", "PLR0911", "PLR0913", "PLR0915", "DJ001", "DJ001", "DJ008", "TRY003", "PLR0912", "RUF012", "PIE790"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
Expand Down

0 comments on commit 69bd989

Please sign in to comment.