From 8d18328dff635b936c1bf8df79d7f66cbb049705 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:55:51 +0000 Subject: [PATCH 1/4] =?UTF-8?q?chore(pre=5Fcommit):=20=E2=AC=86=20pre=5Fco?= =?UTF-8?q?mmit=20autoupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.7.4) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6767146f..f550e084 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: additional_dependencies: ["bandit[toml]"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.7.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 88f113d14bf81b7dba3835160be56fa312717794 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Tue, 19 Nov 2024 17:53:18 +0300 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20=F0=9F=93=9D=20git=20clone=20method?= =?UTF-8?q?s=20are=20extended=20and=20shallow=20copy=20method=20also=20add?= =?UTF-8?q?ed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- CONTRIBUTING.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8a06e342..9a02f052 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -128,15 +128,27 @@ PRs must pass all tests and linting requirements before they can be merged. Before starting your work on the project, set up your development environment: -1. Clone your fork of the project: +1. Clone your fork of the project (recommended to use shallow clone of develop branch): + + **Option A: Recommended for most contributors (shallow clone of develop branch):** ```bash - git clone https://github.com/YOUR_USERNAME/supervision.git + git clone --depth 1 -b develop https://github.com/YOUR_USERNAME/supervision.git cd supervision ``` Replace `YOUR_USERNAME` with your GitHub username. + > Note: Using `--depth 1` creates a shallow clone with minimal history and `-b develop` ensures you start with the development branch. This significantly reduces download size while providing everything needed to contribute. + + **Option B: Full repository clone (if you need complete history):** + + ```bash + git clone https://github.com/YOUR_USERNAME/supervision.git + cd supervision + git checkout develop + ``` + 2. Create and activate a virtual environment: ```bash From a57f4f22aeb2076b0b880b557fc8c74bc9c93544 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Tue, 19 Nov 2024 17:57:56 +0300 Subject: [PATCH 3/4] =?UTF-8?q?docs:=20=F0=9F=93=9D=20git=20clone=20exampl?= =?UTF-8?q?es=20with=20single=20branch=20and=20single=20depth=20added=20in?= =?UTF-8?q?to=20example=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- docs/index.md | 4 ++-- examples/count_people_in_zone/README.md | 2 +- examples/heatmap_and_track/README.md | 2 +- examples/speed_estimation/README.md | 2 +- examples/time_in_zone/README.md | 2 +- examples/tracking/README.md | 2 +- examples/traffic_analysis/README.md | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/index.md b/docs/index.md index 08fdb240..b78ce6c5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -63,7 +63,7 @@ You can install `supervision` in a === "virtualenv" ```bash # clone repository and navigate to root directory - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision # setup python environment and activate it @@ -78,7 +78,7 @@ You can install `supervision` in a === "poetry" ```bash # clone repository and navigate to root directory - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision # setup python environment and activate it diff --git a/examples/count_people_in_zone/README.md b/examples/count_people_in_zone/README.md index 0cb20955..994ffec6 100644 --- a/examples/count_people_in_zone/README.md +++ b/examples/count_people_in_zone/README.md @@ -17,7 +17,7 @@ https://github.com/roboflow/supervision/assets/26109316/f84db7b5-79e2-4142-a1da- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/count_people_in_zone ``` diff --git a/examples/heatmap_and_track/README.md b/examples/heatmap_and_track/README.md index 2c2fc58c..2551dadb 100644 --- a/examples/heatmap_and_track/README.md +++ b/examples/heatmap_and_track/README.md @@ -11,7 +11,7 @@ supervision package for multiple tasks such as drawing heatmap annotations, trac - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/heatmap_and_track ``` diff --git a/examples/speed_estimation/README.md b/examples/speed_estimation/README.md index 08a2018b..c2e6bcbd 100644 --- a/examples/speed_estimation/README.md +++ b/examples/speed_estimation/README.md @@ -22,7 +22,7 @@ https://github.com/roboflow/supervision/assets/26109316/d50118c1-2ae4-458d-915a- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/speed_estimation ``` diff --git a/examples/time_in_zone/README.md b/examples/time_in_zone/README.md index b40e29eb..5c91a80b 100644 --- a/examples/time_in_zone/README.md +++ b/examples/time_in_zone/README.md @@ -16,7 +16,7 @@ https://github.com/roboflow/supervision/assets/26109316/d051cc8a-dd15-41d4-aa36- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/time_in_zone ``` diff --git a/examples/tracking/README.md b/examples/tracking/README.md index cb167712..53b8a3e5 100644 --- a/examples/tracking/README.md +++ b/examples/tracking/README.md @@ -10,7 +10,7 @@ detection and Supervision for tracking and annotation. - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/tracking ``` diff --git a/examples/traffic_analysis/README.md b/examples/traffic_analysis/README.md index feac8d91..29ed7168 100644 --- a/examples/traffic_analysis/README.md +++ b/examples/traffic_analysis/README.md @@ -13,7 +13,7 @@ https://github.com/roboflow/supervision/assets/26109316/c9436828-9fbf-4c25-ae8c- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/traffic_analysis ``` From 4bfee1096e07d1760cb53a2c4c40da8d2ebf4542 Mon Sep 17 00:00:00 2001 From: LinasKo Date: Mon, 25 Nov 2024 13:11:54 +0200 Subject: [PATCH 4/4] docs: removed `git checkout develop` Develop is the primary branch, so explicit checkout is not needed --- CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9a02f052..57a66af8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -146,7 +146,6 @@ Before starting your work on the project, set up your development environment: ```bash git clone https://github.com/YOUR_USERNAME/supervision.git cd supervision - git checkout develop ``` 2. Create and activate a virtual environment: