chore(pre_commit): ⬆ pre_commit autoupdate (#2248)
* chore(pre_commit): ⬆ pre_commit autoupdate 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.25.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.21.1...v2.25.0) - [github.com/astral-sh/ruff-pre-commit: v0.15.12 → v0.15.18](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.12...v0.15.18) - [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) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
This commit is contained in:
co-authored by
Jirka Borovec
parent
0a95bae8a8
commit
ad2c75021f
@@ -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.25.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.18
|
||||
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
|
||||
language_version: python3.11
|
||||
|
||||
+10
-10
@@ -96,12 +96,12 @@ 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]
|
||||
target-version = "py310"
|
||||
line-length = 88
|
||||
@@ -180,17 +180,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.10"
|
||||
ignore_missing_imports = false
|
||||
explicit_package_bases = true
|
||||
strict = true
|
||||
mypy_path = "src"
|
||||
explicit_package_bases = true
|
||||
ignore_missing_imports = false
|
||||
python_version = "3.10"
|
||||
strict = true
|
||||
overrides = [
|
||||
# exclude = [
|
||||
# "docs",
|
||||
@@ -199,19 +199,19 @@ overrides = [
|
||||
# "setup.py",
|
||||
# ]
|
||||
{ module = [
|
||||
"tests.*",
|
||||
"examples.*",
|
||||
"tests.*",
|
||||
], ignore_errors = true },
|
||||
{ module = "deprecate", ignore_missing_imports = 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
|
||||
|
||||
Reference in New Issue
Block a user