Skip to content

Commit 36ab9dc

Browse files
authored
Merge pull request #627 from roboflow/develop
`supervision-0.17.0` release
2 parents f34993c + 01d6c53 commit 36ab9dc

Some content is hidden

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

50 files changed

+3049
-1450
lines changed

.github/dependabot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
commit-message:
9+
prefix: ⬆️
10+
# Python
11+
- package-ecosystem: "pip"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
commit-message:
16+
prefix: ⬆️

.github/requirements-dev-min.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
attrs==23.1.0
2+
certifi==2023.7.22
3+
charset-normalizer==2.0.12
4+
cycler==0.12.1
5+
exceptiongroup==1.1.3
6+
fonttools==4.43.1
7+
idna==3.4
8+
iniconfig==2.0.0
9+
kiwisolver==1.4.5
10+
matplotlib==3.5.0
11+
numpy==1.21.2
12+
opencv-python==4.5.5.64
13+
packaging==23.2
14+
Pillow==10.1.0
15+
pluggy==1.3.0
16+
pyparsing==3.1.1
17+
pytest==7.2.0
18+
python-dateutil==2.8.2
19+
PyYAML==5.3
20+
requests==2.26.0
21+
scipy==1.9.0
22+
setuptools-scm==8.0.4
23+
six==1.16.0
24+
tomli==2.0.1
25+
tqdm==4.62.3
26+
typing_extensions==4.8.0
27+
urllib3==1.26.18

.github/workflows/clear-cache.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Clear cache
17-
uses: actions/github-script@v6
17+
uses: actions/github-script@v7
1818
with:
1919
script: |
2020
console.log("About to clear")

.github/workflows/docs.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ on:
66
- master
77
- main
88
- develop
9+
10+
permissions:
11+
contents: write
12+
pages: write
13+
pull-requests: write
14+
915
jobs:
1016
deploy:
1117
runs-on: ubuntu-latest
1218
steps:
13-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1420
- uses: actions/setup-python@v4
1521
with:
1622
python-version: 3.x
1723
- run: pip install mkdocs-material
1824
- run: pip install "mkdocstrings[python]"
25+
- run: pip install "mkdocs-material[imaging]"
1926
- run: mkdocs gh-deploy --force

.github/workflows/publish-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout source
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: 🐍 Set up Python 3.8 environment for build
2222
uses: actions/setup-python@v4

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python-version: [3.8]
1818
steps:
1919
- name: 🛎️ Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{ github.head_ref }}
2323
- name: 🐍 Set up Python ${{ matrix.python-version }}

.github/workflows/test-min.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python 3.8 - Min Dep Test WorkFlow
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
7+
jobs:
8+
build-min-dep-test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.8"]
13+
steps:
14+
- name: 🛎️ Checkout
15+
uses: actions/checkout@v4
16+
- name: 🐍 Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
# id based on python version
19+
id: python-setup
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
check-latest: true
23+
cache: 'pip'
24+
cache-dependency-path: '**/requirements-dev-min.txt'
25+
26+
- name: 📦 Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r .github/requirements-dev-min.txt
30+
31+
- name: 🧪 Test
32+
run: "python -m pytest ./test"

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches: [main, develop]
66

77
jobs:
8-
build:
8+
build-dev-test:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
1212
python-version: ["3.8", "3.9", "3.10","3.11"]
1313
steps:
1414
- name: 🛎️ Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: 🐍 Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v4
1818
# id based on python version

.github/workflows/welcome.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: 👋 Welcome
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/first-interaction@v1.1.1
14+
- uses: actions/first-interaction@v1.3.0
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap."

.pre-commit-config.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repos:
1111
hooks:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
14+
exclude: test/.*\.py
1415
- id: check-yaml
1516
- id: check-docstring-first
1617
- id: check-executables-have-shebangs
@@ -65,12 +66,12 @@ repos:
6566

6667

6768
- repo: https://github.com/psf/black
68-
rev: 23.9.1
69+
rev: 23.11.0
6970
hooks:
7071
- id: black
7172

7273
- repo: https://github.com/astral-sh/ruff-pre-commit
73-
rev: v0.0.292
74+
rev: v0.1.6
7475
hooks:
7576
- id: ruff
7677
args: [--fix, --exit-non-zero-on-fix]

0 commit comments

Comments
 (0)