Skip to content

Commit

Permalink
make latest version of ruff happy
Browse files Browse the repository at this point in the history
i.e., 0.2.2 . this one started complaining about renamed configuration
options.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Michael Hahn <[email protected]>
  • Loading branch information
andlaus committed Feb 29, 2024
1 parent 74b2401 commit 9d2fab1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion odxtools/compumethods/limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import List, Optional, overload
from xml.etree import ElementTree

from typing_extensions import final

from ..exceptions import odxraise
from ..odxlink import OdxDocFragment
Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,27 @@ ignore_missing_imports = true
strict = true

[tool.ruff]
select = [
lint.select = [
"E", # pycodestyle Error
"W", # pycodestyle Warning
"F", # pyflakes
"B", # pyflakes-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
]
ignore = [
lint.ignore = [
"E501", # line too long
"F541", # f-string-missing-placeholders
]

exclude = [
lint.exclude = [
"doc",
]

# Assume Python 3.8.
target-version = "py38"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["odxtools"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]

[tool.yapf]
Expand Down

0 comments on commit 9d2fab1

Please sign in to comment.