Skip to content

Commit

Permalink
Require ruff >= 0.2
Browse files Browse the repository at this point in the history
This version moved around some configuration keys and complains if they
are in the old location.

Signed-off-by: Nils Philippsen <nils@redhat.com>
  • Loading branch information
nphilipp committed Mar 14, 2024
1 parent a112a6a commit 24b62dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions poetry.lock

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

8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ greenlet = "^1.1.2 || ^2.0.0 || ^3.0.0"
toml = "^0.10.2"
pytest-mock = "^3.8.2"
respx = "^0.20.0"
ruff = "^0.0.253 || ^0.0.254 || ^0.0.256 || ^0.0.257 || ^0.0.259 || ^0.0.260 || ^0.0.261 || ^0.0.262 || ^0.0.265 || ^0.0.269 || ^0.0.270 || ^0.0.271 || ^0.0.272 || ^0.0.273 || ^0.0.274 || ^0.0.275 || ^0.0.276 || ^0.0.277 || ^0.0.278 || ^0.0.282 || ^0.0.283 || ^0.0.284 || ^0.0.285 || ^0.0.286 || ^0.0.287 || ^0.0.288 || ^0.0.289 || ^0.0.290 || ^0.0.291 || ^0.0.292 || ^0.1.0 || ^0.2.0 || ^0.3.0"
ruff = "^0.2.0 || ^0.3.0"
towncrier = "^22.12.0 || ^23.0.0"
sphinx = "^6.1.3 || ^7.0.0"
myst-parser = "^1.0.0 || ^2.0.0"
Expand Down Expand Up @@ -204,13 +204,15 @@ markers = "alembic_table_deleted: When the alembic version table has been delete
line-length = 100

[tool.ruff]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
line-length = 100
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
ignore = ["UP038"]
allowed-confusables = [""]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"fmn/api/*" = ["B008", "RUF012"]
"fmn/backends/__init__.py" = ["F401"]
"fmn/core/config.py" = ["RUF012"]
Expand Down

0 comments on commit 24b62dc

Please sign in to comment.