From 96781fce6bfe60edf063a204082f74882efb2083 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 17:44:39 +0000 Subject: [PATCH 1/2] =?UTF-8?q?chore(pre=5Fcommit):=20=E2=AC=86=20pre=5Fco?= =?UTF-8?q?mmit=20autoupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/JoC0de/pre-commit-prettier: v3.8.3 → v3.8.4](https://github.com/JoC0de/pre-commit-prettier/compare/v3.8.3...v3.8.4) - [github.com/tox-dev/pyproject-fmt: v2.21.1 → v2.24.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.21.1...v2.24.1) - [github.com/astral-sh/ruff-pre-commit: v0.15.12 → v0.15.17](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.12...v0.15.17) - [github.com/pre-commit/mirrors-mypy: v1.20.2 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.2...v2.1.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1be81e2bff..817177fd95 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/JoC0de/pre-commit-prettier - rev: v3.8.3 # using tag; previously pinned SHA when tags were not persistent + rev: v3.8.4 # using tag; previously pinned SHA when tags were not persistent hooks: - id: prettier files: \.(ya?ml|toml)$ @@ -37,7 +37,7 @@ repos: args: ["--print-width=120"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.1 + rev: v2.24.1 hooks: - id: pyproject-fmt @@ -47,7 +47,7 @@ repos: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.15.17 hooks: - id: ruff-check args: ["--fix"] @@ -65,7 +65,7 @@ repos: exclude: ^(docs/changelog\.md|docs/deprecated\.md)$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.2 + rev: v2.1.0 hooks: - id: mypy additional_dependencies: From 7e3a7ed4a9089a4c3ba91a10355654782875981e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 17:45:19 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20?= =?UTF-8?q?format=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f456327976..49f4035cd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,10 +94,10 @@ build = [ ] [tool.setuptools] -include-package-data = false -package-data.supervision = [ "py.typed" ] packages.find.where = [ "src" ] packages.find.include = [ "supervision*" ] +include-package-data = false +package-data.supervision = [ "py.typed" ] # exclude = [ "docs*", "tests*", "examples*" ] [tool.ruff] @@ -178,17 +178,17 @@ lint.pydocstyle.convention = "google" lint.pylint.max-args = 20 [tool.codespell] +ignore-words-list = "STrack,sTrack,strack" skip = "*.ipynb" count = true quiet-level = 3 -ignore-words-list = "STrack,sTrack,strack" [tool.mypy] -python_version = "3.9" -ignore_missing_imports = false +mypy_path = "src" explicit_package_bases = true +ignore_missing_imports = false +python_version = "3.9" strict = true -mypy_path = "src" overrides = [ # exclude = [ # "docs", @@ -197,18 +197,18 @@ overrides = [ # "setup.py", # ] { module = [ - "tests.*", "examples.*", + "tests.*", ], ignore_errors = true }, ] [tool.pytest] +ini_options.norecursedirs = [ ".git", ".venv", "build", "dist", "docs", "examples", "notebooks" ] ini_options.addopts = [ "--doctest-modules", "--color=yes", ] ini_options.doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" -ini_options.norecursedirs = [ "examples", "docs", "notebooks", ".venv", ".git", "dist", "build" ] [tool.autoflake] check = true