Fix ruff deprecation warning

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'
This commit is contained in:
Ran Benita 2024-02-09 10:48:05 +02:00
parent 9454fc38d3
commit d02618d173
1 changed files with 5 additions and 3 deletions

View File

@ -87,6 +87,11 @@ target-version = ['py38']
[tool.ruff]
src = ["src"]
line-length = 88
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"B", # bugbear
"D", # pydocstyle
@ -130,9 +135,6 @@ ignore = [
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.pycodestyle]
# In order to be able to format for 88 char in ruff format
max-line-length = 120