Skip to content

Commit

Permalink
pyproject.toml: Updated ruff deprecated settings
Browse files Browse the repository at this point in the history
Addresses these deprecated messages from ruff:

```
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'
  - 'flake8-annotations' -> 'lint.flake8-annotations'
  - 'pydocstyle' -> 'lint.pydocstyle'
```
  • Loading branch information
Javagedes committed Oct 1, 2024
1 parent 4a500a4 commit 1085690
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ include = ["edk2toolext/*"]

[tool.ruff]
src = ["edk2toolext"]
line-length = 120

[lint]
ignore = ["ANN101"]
select = [
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
Expand All @@ -103,13 +107,11 @@ select = [
"PIE", # flake8 - PIE
"ANN", # function annotations
]
line-length = 120
ignore = ["ANN101"]

[tool.ruff.pydocstyle]
[lint.pydocstyle]
convention = "google"

[tool.ruff.flake8-annotations]
[lint.flake8-annotations]
allow-star-arg-any = true

[tool.pytest.ini_options]
Expand Down

0 comments on commit 1085690

Please sign in to comment.