mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Enable ruff check for ANN (#1139)
This commit is contained in:
@@ -139,10 +139,15 @@ select = [
|
||||
"PT", # flake8-pytest-style
|
||||
"LOG", # flake8-logging
|
||||
"G", # flake8-logging-format
|
||||
"ANN", # annotations
|
||||
]
|
||||
ignore = [
|
||||
"D105", # Missing docstring in magic method
|
||||
"D107", # Missing docstring in `__init__`
|
||||
"ANN101", # Missing type annotation for `self`
|
||||
"ANN102", # Missing type annotation for `cls` in classmethod
|
||||
"ANN003", # Missing type annotation for `**kwargs`
|
||||
"ANN401", # allow any
|
||||
]
|
||||
|
||||
[tool.ruff.lint.pydocstyle]
|
||||
@@ -157,11 +162,21 @@ convention = "pep257"
|
||||
"D104",
|
||||
"S101", # allow asserts
|
||||
"E501", # ignore line-too-longs
|
||||
"ANN", # skip for now
|
||||
]
|
||||
"docs/source/conf.py" = [
|
||||
"D100",
|
||||
"D103",
|
||||
]
|
||||
# Temporary ANN disable
|
||||
"kasa/cli/*.py" = [
|
||||
"ANN",
|
||||
]
|
||||
# Temporary ANN disable
|
||||
"devtools/*.py" = [
|
||||
"ANN",
|
||||
]
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
warn_unused_configs = true # warns if overrides sections unused/mis-spelled
|
||||
|
Reference in New Issue
Block a user