Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
Expand All @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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",
Expand All @@ -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
Expand Down
Loading