diff --git a/examples/device_scanner.py b/examples/device_scanner.py index f0275b4..1314a32 100644 --- a/examples/device_scanner.py +++ b/examples/device_scanner.py @@ -1,4 +1,3 @@ -# ruff: noqa: T201, D103 import asyncio import logging diff --git a/examples/fetch_reports.py b/examples/fetch_reports.py index bac7704..82521df 100644 --- a/examples/fetch_reports.py +++ b/examples/fetch_reports.py @@ -1,4 +1,3 @@ -# ruff: noqa: T201, D103, S101 import json import logging from pathlib import Path diff --git a/examples/fetch_reports_async.py b/examples/fetch_reports_async.py index 1c86420..ce24723 100644 --- a/examples/fetch_reports_async.py +++ b/examples/fetch_reports_async.py @@ -1,4 +1,3 @@ -# ruff: noqa: T201, D103, S101 import asyncio import json import logging diff --git a/examples/real_airtag.py b/examples/real_airtag.py index f4ceb72..db03962 100644 --- a/examples/real_airtag.py +++ b/examples/real_airtag.py @@ -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: diff --git a/pyproject.toml b/pyproject.toml index d980231..81301db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"