Skip to content

Commit

Permalink
🔧 按ruff建议修改ruff配置
Browse files Browse the repository at this point in the history
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  • Loading branch information
AzideCupric committed Aug 15, 2024
1 parent 94a28bc commit 9863090
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ markers = [
asyncio_mode = "auto"

[tool.ruff]
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"]
ignore = ["E402", "C901", "PT023"]

line-length = 120
target-version = "py310"

[tool.ruff.lint]
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"]
ignore = ["E402", "C901", "PT023"]

[tool.black]
line-length = 120
preview = true
Expand Down

0 comments on commit 9863090

Please sign in to comment.