Skip to content

Commit 53f4cde

Browse files
authored
Merge pull request #764 from roboflow/develop
`supervision-0.18.0` release
2 parents bcb26f9 + 181724e commit 53f4cde

File tree

104 files changed

+8258
-3610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+8258
-3610
lines changed

.github/requirements-dev-min.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/test-min.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,38 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
check-latest: true
23-
cache: 'pip'
24-
cache-dependency-path: '**/requirements-dev-min.txt'
2523

2624
- name: 📦 Install dependencies
2725
run: |
2826
python -m pip install --upgrade pip
29-
pip install -r .github/requirements-dev-min.txt
27+
pip install \
28+
attrs==23.1.0 \
29+
certifi==2023.7.22 \
30+
charset-normalizer==2.0.12 \
31+
cycler==0.12.1 \
32+
exceptiongroup==1.1.3 \
33+
fonttools==4.43.1 \
34+
idna==3.4 \
35+
iniconfig==2.0.0 \
36+
kiwisolver==1.4.5 \
37+
matplotlib==3.5.0 \
38+
numpy==1.21.2 \
39+
opencv-python==4.5.5.64 \
40+
packaging==23.2 \
41+
pluggy==1.3.0 \
42+
pyparsing==3.1.1 \
43+
pytest==7.2.0 \
44+
python-dateutil==2.8.2 \
45+
PyYAML==5.3 \
46+
requests==2.26.0 \
47+
scipy==1.10.0 \
48+
setuptools-scm==8.0.4 \
49+
six==1.16.0 \
50+
tomli==2.0.1 \
51+
tqdm==4.62.3 \
52+
typing_extensions==4.8.0 \
53+
urllib3==1.26.18 \
54+
defusedxml==0.7.1
3055
3156
- name: 🧪 Test
3257
run: "python -m pytest ./test"

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,24 @@ dmypy.json
135135

136136
# Notebooks
137137
notebooks/
138+
139+
# OSX folder attributes
140+
.DS_Store
141+
.AppleDouble
142+
.LSOverride
143+
144+
# Thumbnails
145+
._*
146+
147+
# Files that might appear on external disk
148+
.Spotlight-V100
149+
.Trashes
150+
151+
# Windows
152+
Thumbs.db
153+
Desktop.ini
154+
155+
# Linux
156+
*~
157+
.directory
158+
.Trash-*

.pre-commit-config.yaml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ repos:
1313
- id: trailing-whitespace
1414
exclude: test/.*\.py
1515
- id: check-yaml
16+
exclude: mkdocs.yml
1617
- id: check-docstring-first
1718
- id: check-executables-have-shebangs
1819
- id: check-toml
1920
- id: check-case-conflict
2021
- id: check-added-large-files
21-
args: ['--maxkb=2048']
22-
exclude: ^logo/
2322
- id: detect-private-key
2423
- id: forbid-new-submodules
2524
- id: pretty-format-json
@@ -28,50 +27,29 @@ repos:
2827
- id: end-of-file-fixer
2928
- id: mixed-line-ending
3029

31-
# - repo: https://github.com/asottile/pyupgrade
32-
# rev: v3.9.0
33-
# hooks:
34-
# - id: pyupgrade
35-
# name: Upgrade code
36-
# args: [--py38-plus]
37-
38-
39-
- repo: https://github.com/PyCQA/flake8
40-
rev: 6.1.0
41-
hooks:
42-
- id: flake8
43-
name: Flake8 Checks
44-
entry: flake8
45-
additional_dependencies: [Flake8-pyproject]
4630

4731

4832
- repo: https://github.com/PyCQA/bandit
49-
rev: '1.7.5'
33+
rev: '1.7.6'
5034
hooks:
5135
- id: bandit
5236
args: ["-c", "pyproject.toml"]
5337
additional_dependencies: ["bandit[toml]"]
5438

5539
- repo: https://github.com/pycqa/isort
56-
rev: 5.12.0
40+
rev: 5.13.2
5741
hooks:
5842
- id: isort
5943
name: isort (python)
60-
- id: isort
61-
name: isort (cython)
62-
types: [cython]
6344
- id: isort
6445
name: isort (pyi)
6546
types: [pyi]
6647

6748

68-
- repo: https://github.com/psf/black
69-
rev: 23.11.0
70-
hooks:
71-
- id: black
72-
7349
- repo: https://github.com/astral-sh/ruff-pre-commit
74-
rev: v0.1.6
50+
rev: v0.1.14
7551
hooks:
7652
- id: ruff
7753
args: [--fix, --exit-non-zero-on-fix]
54+
- id: ruff-format
55+
types_or: [ python, pyi, jupyter ]

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ git push -u origin main
5252

5353
### Pre-commit tool
5454

55-
This project utilizes the [pre-commit](https://pre-commit.com/) tool to maintain code quality and consistency. Before submitting a pull request or making any commits, it is important to run the pre-commit tool to ensure that your changes meet the project's guidelines.
55+
This project uses the [pre-commit](https://pre-commit.com/) tool to maintain code quality and consistency. Before submitting a pull request or making any commits, it is important to run the pre-commit tool to ensure that your changes meet the project's guidelines.
5656

5757
Furthermore, we have integrated a pre-commit GitHub Action into our workflow. This means that with every pull request opened, the pre-commit checks will be automatically enforced, streamlining the code review process and ensuring that all contributions adhere to our quality standards.
5858

@@ -76,7 +76,6 @@ All new functions and classes in `supervision` should include docstrings. This i
7676

7777
So far, **there is no type checking with mypy**. See [issue](https://github.com/roboflow-ai/template-python/issues/4).
7878

79-
8079
Then, go back to your fork of the `supervision` repository, click "Pull Requests", and click "New Pull Request".
8180

8281
![Opening a pull request](https://media.roboflow.com/open_pr.png)
@@ -109,7 +108,7 @@ PRs must pass all tests and linting requirements before they can be merged.
109108

110109
The `supervision` documentation is stored in a folder called `docs`. The project documentation is built using `mkdocs`.
111110

112-
To run the documentation, install the project requirements with `poetry install dev`. Then, run `mkdocs serve` to start the documentation server.
111+
To run the documentation, install the project requirements with `poetry install --with dev`. Then, run `mkdocs serve` to start the documentation server.
113112

114113
You can learn more about mkdocs on the [mkdocs website](https://www.mkdocs.org/).
115114

0 commit comments

Comments
 (0)