Re-enable ruff in examples

This commit is contained in:
Mike A
2024-02-08 15:56:54 +01:00
parent 246b407e45
commit e18e179e95
5 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
# ruff: noqa: T201, D103
import asyncio
import logging

View File

@@ -1,4 +1,3 @@
# ruff: noqa: T201, D103, S101
import json
import logging
from pathlib import Path

View File

@@ -1,4 +1,3 @@
# ruff: noqa: T201, D103, S101
import asyncio
import json
import logging

View File

@@ -1,4 +1,3 @@
# ruff: noqa: T201, D103, S101
"""
Example showing how to retrieve the primary key of your own AirTag, or any other FindMy-accessory.
@@ -39,7 +38,7 @@ def main() -> None:
lookup_time = paired_at.replace(
minute=paired_at.minute // 15 * 15,
second=0,
microsecond=0
microsecond=0,
) + timedelta(minutes=15)
while lookup_time < now:

View File

@@ -24,7 +24,6 @@ sphinx-autoapi = "^3.0.0"
[tool.ruff]
exclude = [
"examples/",
"docs/",
]
@@ -45,6 +44,14 @@ ignore = [
line-length = 100
[tool.ruff.lint.per-file-ignores]
"examples/*" = [
"T201", # use of "print"
"S101", # use of "assert"
"D", # documentation
"INP001", # namespacing
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"