Skip to content

Commit ad2c750

Browse files
chore(pre_commit): ⬆ pre_commit autoupdate (roboflow#2248)
* chore(pre_commit): ⬆ pre_commit autoupdate updates: - [github.com/JoC0de/pre-commit-prettier: v3.8.3 → v3.8.4](JoC0de/pre-commit-prettier@v3.8.3...v3.8.4) - [github.com/tox-dev/pyproject-fmt: v2.21.1 → v2.25.0](tox-dev/pyproject-fmt@v2.21.1...v2.25.0) - [github.com/astral-sh/ruff-pre-commit: v0.15.12 → v0.15.18](astral-sh/ruff-pre-commit@v0.15.12...v0.15.18) - [github.com/pre-commit/mirrors-mypy: v1.20.2 → v2.1.0](pre-commit/mirrors-mypy@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>
1 parent 0a95bae commit ad2c750

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ repos:
2929
- id: mixed-line-ending
3030

3131
- repo: https://github.com/JoC0de/pre-commit-prettier
32-
rev: v3.8.3 # using tag; previously pinned SHA when tags were not persistent
32+
rev: v3.8.4 # using tag; previously pinned SHA when tags were not persistent
3333
hooks:
3434
- id: prettier
3535
files: \.(ya?ml|toml)$
3636
# https://prettier.io/docs/en/options.html#print-width
3737
args: ["--print-width=120"]
3838

3939
- repo: https://github.com/tox-dev/pyproject-fmt
40-
rev: v2.21.1
40+
rev: v2.25.0
4141
hooks:
4242
- id: pyproject-fmt
4343

@@ -47,7 +47,7 @@ repos:
4747
- id: validate-pyproject
4848

4949
- repo: https://github.com/astral-sh/ruff-pre-commit
50-
rev: v0.15.12
50+
rev: v0.15.18
5151
hooks:
5252
- id: ruff-check
5353
args: ["--fix"]
@@ -65,7 +65,7 @@ repos:
6565
exclude: ^(docs/changelog\.md|docs/deprecated\.md)$
6666

6767
- repo: https://github.com/pre-commit/mirrors-mypy
68-
rev: v1.20.2
68+
rev: v2.1.0
6969
hooks:
7070
- id: mypy
7171
language_version: python3.11

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ build = [
9696
]
9797

9898
[tool.setuptools]
99-
include-package-data = false
100-
package-data.supervision = [ "py.typed" ]
10199
packages.find.where = [ "src" ]
102100
packages.find.include = [ "supervision*" ]
103-
101+
include-package-data = false
102+
package-data.supervision = [ "py.typed" ]
104103
# exclude = [ "docs*", "tests*", "examples*" ]
104+
105105
[tool.ruff]
106106
target-version = "py310"
107107
line-length = 88
@@ -180,17 +180,17 @@ lint.pydocstyle.convention = "google"
180180
lint.pylint.max-args = 20
181181

182182
[tool.codespell]
183+
ignore-words-list = "STrack,sTrack,strack"
183184
skip = "*.ipynb"
184185
count = true
185186
quiet-level = 3
186-
ignore-words-list = "STrack,sTrack,strack"
187187

188188
[tool.mypy]
189-
python_version = "3.10"
190-
ignore_missing_imports = false
189+
mypy_path = "src"
191190
explicit_package_bases = true
191+
ignore_missing_imports = false
192+
python_version = "3.10"
192193
strict = true
193-
mypy_path = "src"
194194
overrides = [
195195
# exclude = [
196196
# "docs",
@@ -199,19 +199,19 @@ overrides = [
199199
# "setup.py",
200200
# ]
201201
{ module = [
202-
"tests.*",
203202
"examples.*",
203+
"tests.*",
204204
], ignore_errors = true },
205205
{ module = "deprecate", ignore_missing_imports = true },
206206
]
207207

208208
[tool.pytest]
209+
ini_options.norecursedirs = [ ".git", ".venv", "build", "dist", "docs", "examples", "notebooks" ]
209210
ini_options.addopts = [
210211
"--doctest-modules",
211212
"--color=yes",
212213
]
213214
ini_options.doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE"
214-
ini_options.norecursedirs = [ "examples", "docs", "notebooks", ".venv", ".git", "dist", "build" ]
215215

216216
[tool.autoflake]
217217
check = true

0 commit comments

Comments
 (0)