diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1f0ff0..7a9bb6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,10 @@ jobs: run: uv sync --group dev - name: Lint (ruff) - run: uvx ruff check . + run: uvx ruff@0.16.10 check . - name: Format (ruff) - run: uvx ruff format --check . + run: uvx ruff@0.16.10 format --check . - name: Type check (ty) run: uv run ty check diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1e9964..bdd411b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - # Ruff version. - rev: v0.14.2 + # Ruff version. Keep in sync with the ruff version in .github/workflows/ci.yml + rev: v0.16.10 hooks: # Run the linter. - id: ruff-check diff --git a/README.md b/README.md index ac1c8b9..98ae375 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ import asyncio from cflib2 import Crazyflie, LinkContext + async def main(): context = LinkContext() @@ -26,6 +27,7 @@ async def main(): print(f"Low voltage threshold: {value}V") await cf.disconnect() + asyncio.run(main()) ```