mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-21 16:25:37 +02:00
Re-enable ruff in examples
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# ruff: noqa: T201, D103
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# ruff: noqa: T201, D103, S101
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# ruff: noqa: T201, D103, S101
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -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.
|
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(
|
lookup_time = paired_at.replace(
|
||||||
minute=paired_at.minute // 15 * 15,
|
minute=paired_at.minute // 15 * 15,
|
||||||
second=0,
|
second=0,
|
||||||
microsecond=0
|
microsecond=0,
|
||||||
) + timedelta(minutes=15)
|
) + timedelta(minutes=15)
|
||||||
|
|
||||||
while lookup_time < now:
|
while lookup_time < now:
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ sphinx-autoapi = "^3.0.0"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
exclude = [
|
exclude = [
|
||||||
"examples/",
|
|
||||||
"docs/",
|
"docs/",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -45,6 +44,14 @@ ignore = [
|
|||||||
|
|
||||||
line-length = 100
|
line-length = 100
|
||||||
|
|
||||||
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
"examples/*" = [
|
||||||
|
"T201", # use of "print"
|
||||||
|
"S101", # use of "assert"
|
||||||
|
"D", # documentation
|
||||||
|
"INP001", # namespacing
|
||||||
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
Reference in New Issue
Block a user