From 6d35301672be0619f348d1d5168c723cec1880cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 21:24:35 +0900 Subject: [PATCH] =?UTF-8?q?chore(pre=5Fcommit):=20=E2=AC=86=20pre=5Fcommit?= =?UTF-8?q?=20autoupdate=20(#2143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(pre_commit): ⬆ pre_commit autoupdate updates: - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.14.2](https://github.com/tox-dev/pyproject-fmt/compare/v2.12.1...v2.14.2) - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25) - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0) * fix(pre_commit): 🎨 auto format pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 30 +++++++++++------------------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc534e66..2a013252 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,17 +26,17 @@ repos: - id: mixed-line-ending - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.12.1 + rev: v2.14.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.0 hooks: - id: ruff-check args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index e7c9f575..8ee0578f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,6 @@ dependencies = [ "scipy>=1.10", "tqdm>=4.62.3", ] - optional-dependencies.metrics = [ "pandas>=2", ] @@ -95,22 +94,16 @@ build = [ [tool.setuptools] include-package-data = false +package-data.supervision = [ "py.typed" ] +packages.find.where = [ "src" ] +packages.find.include = [ "supervision*" ] -[tool.setuptools.package-data] -supervision = [ "py.typed" ] - -[tool.setuptools.packages.find] -where = [ "src" ] -include = [ "supervision*" ] - -#exclude = [ "docs*", "tests*", "examples*" ] +# exclude = [ "docs*", "tests*", "examples*" ] [tool.ruff] target-version = "py39" - line-length = 88 indent-width = 4 - # Exclude a variety of commonly ignored directories. exclude = [ ".bzr", @@ -138,7 +131,6 @@ exclude = [ "yarn-error.log", "yarn.lock", ] - # Like Black, indent with spaces, rather than tabs. format.indent-style = "space" # Like Black, use double quotes for strings. @@ -160,7 +152,7 @@ lint.select = [ "UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up "W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#pycodestyle-w ] -lint.ignore = [ ] +lint.ignore = [] lint.per-file-ignores."__init__.py" = [ "E402", "F401" ] lint.per-file-ignores."src/**" = [ "S101", # TODO: Replace asserts with proper error handling @@ -168,7 +160,7 @@ lint.per-file-ignores."src/**" = [ lint.per-file-ignores."tests/**" = [ "S101", # Use of `assert` detected ] -lint.unfixable = [ ] +lint.unfixable = [] # Allow unused variables when underscore-prefixed. lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" lint.flake8-quotes.docstring-quotes = "double" @@ -187,12 +179,12 @@ count = true quiet-level = 3 ignore-words-list = "STrack,sTrack,strack" -[tool.pytest.ini_options] -addopts = [ +[tool.pytest] +ini_options.addopts = [ "--doctest-modules", "--color=yes", ] -doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" +ini_options.doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" [tool.mypy] python_version = "3.9" @@ -200,12 +192,12 @@ ignore_missing_imports = false explicit_package_bases = true strict = true mypy_path = "src" -#exclude = [ +# exclude = [ # "docs", # "test", # "examples", # "setup.py", -#] +# ] [[tool.mypy.overrides]] module = [