diff --git a/pyproject.toml b/pyproject.toml index 0457275b8..9316c6f18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,14 +125,6 @@ lint.ignore = [ "S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/ "SIM102", # sometimes it's better to nest "TRY003", # Avoid specifying long messages outside the exception class - # Checks for uses of isinstance/issubclass that take a tuple of types for comparison. - # Deactivated because it can make the code slow: https://github.com/astral-sh/ruff/issues/7871 - "UP038", -] -# The fixes in extend-unsafe-fixes will require -# provide the `--unsafe-fixes` flag when fixing. -lint.extend-unsafe-fixes = [ - "UP038", ] lint.isort.force-single-line = true diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 0147262bf..e523b4ca4 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -127,16 +127,10 @@ ignore = [ "S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/ "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` "SIM102", # sometimes it's better to nest - "UP038", # Checks for uses of isinstance/issubclass that take a tuple # of types for comparison. # Deactivated because it can make the code slow: # https://github.com/astral-sh/ruff/issues/7871 ] -# The fixes in extend-unsafe-fixes will require -# provide the `--unsafe-fixes` flag when fixing. -extend-unsafe-fixes = [ - "UP038", -] [tool.ruff.lint.isort] force-single-line = true