mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +02:00
Re-enable ruff in examples
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# ruff: noqa: T201, D103
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# ruff: noqa: T201, D103, S101
|
||||
import json
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# ruff: noqa: T201, D103, S101
|
||||
import asyncio
|
||||
import json
|
||||
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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user