diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 90d8478d8..5a4b0e59d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,7 +37,7 @@ repos: args: ["--print-width=120"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.1 + rev: v2.23.0 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.15 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: diff --git a/pyproject.toml b/pyproject.toml index 855cdc436..5d2af3608 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