Skip to content

Commit

Permalink
pyproject.toml: Update 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'
```

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
makubacki authored and Javagedes committed Oct 1, 2024
1 parent 392b8fb commit 9637c6b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"pyasn1 >= 0.4.8",
"pyasn1-modules >= 0.2.8",
"cryptography >= 39.0.1",
"joblib >= 1.3.2",
"joblib >= 1.3.2",
"GitPython >= 3.1.30",
"sqlalchemy >= 2.0.0",
"pygount >= 1.6.1",
Expand Down Expand Up @@ -67,24 +67,26 @@ include = ["edk2toollib/*"]

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

[lint]
ignore = ["ANN101"]
select = [
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
"F", # PyFlakes
"D", # pydocstyle
"I", # isort
"PIE", # flake8 - PIEpip
"ANN",
"ANN",
]
line-length = 120
ignore = ["ANN101"]

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

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

[lint.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
testpaths = [
"tests.unit"
Expand Down

0 comments on commit 9637c6b

Please sign in to comment.