From 9d2fab171332472eed21b0d60c5073bd0d37a20a Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Thu, 29 Feb 2024 13:13:59 +0100 Subject: [PATCH] make latest version of ruff happy i.e., 0.2.2 . this one started complaining about renamed configuration options. Signed-off-by: Andreas Lauser Signed-off-by: Michael Hahn --- odxtools/compumethods/limit.py | 1 - pyproject.toml | 13 +++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/odxtools/compumethods/limit.py b/odxtools/compumethods/limit.py index 4e73e278..2e3a862d 100644 --- a/odxtools/compumethods/limit.py +++ b/odxtools/compumethods/limit.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index c8165025..454c2c7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,7 +92,7 @@ ignore_missing_imports = true strict = true [tool.ruff] -select = [ +lint.select = [ "E", # pycodestyle Error "W", # pycodestyle Warning "F", # pyflakes @@ -100,22 +100,19 @@ select = [ "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]