diff --git a/client/pyproject.toml b/client/pyproject.toml index edee4903..9d559991 100644 --- a/client/pyproject.toml +++ b/client/pyproject.toml @@ -56,11 +56,9 @@ version = {attr = "telethon.version.__version__"} [tool.ruff] exclude = ["doc"] -[tool.ruff.lint] +[tool.lint] select = ["F", "E", "W", "I", "N", "ANN"] ignore = [ "E501", # formatter takes care of lines that are too long besides documentation - "ANN101", # Missing type annotation for `self` in method - "ANN102", # Missing type annotation for `cls` in classmethod "ANN401", # Dynamically typed expressions (typing.Any) are not type checked ] diff --git a/generator/pyproject.toml b/generator/pyproject.toml index 4c564b9f..5f55302a 100644 --- a/generator/pyproject.toml +++ b/generator/pyproject.toml @@ -37,11 +37,9 @@ build-backend = "setuptools.build_meta" [tool.setuptools.dynamic] version = {attr = "telethon_generator.version.__version__"} -[tool.ruff.lint] +[tool.lint] select = ["F", "E", "W", "I", "N", "ANN"] ignore = [ "E501", # formatter takes care of lines that are too long besides documentation - "ANN101", # Missing type annotation for `self` in method - "ANN102", # Missing type annotation for `cls` in classmethod "ANN401", # Dynamically typed expressions (typing.Any) are not type checked ]