2
0
mirror of https://github.com/LonamiWebs/Telethon synced 2025-08-21 17:37:24 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Jahongir Qurbonov
f852e83363 Remove type annotation ignore rules from lint configuration in pyproject.toml 2025-05-31 11:35:53 +02:00
Jahongir Qurbonov
fea2493b98 Refactor lint configuration in pyproject.toml 2025-05-31 11:35:53 +02:00
2 changed files with 2 additions and 6 deletions

View File

@ -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
]

View File

@ -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
]