From 58c6dcde038f77fa109e086ccb72741abb206414 Mon Sep 17 00:00:00 2001 From: "qwen.ai[bot]" Date: Wed, 12 Aug 2026 13:10:40 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20dev-=D0=BE?= =?UTF-8?q?=D0=BA=D1=80=D1=83=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=BE=D0=B2=D1=8B=D1=85=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/dev-setup.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 scripts/dev-setup.sh diff --git a/scripts/dev-setup.sh b/scripts/dev-setup.sh new file mode 100755 index 0000000..7bd5795 --- /dev/null +++ b/scripts/dev-setup.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Netsleuth Development Setup Script +# This script sets up the development environment for netsleuth contributors + +echo "๐Ÿ”ง Setting up netsleuth development environment..." + +# Check if uv is installed +if ! command -v uv &> /dev/null; then + echo "โŒ uv not found. Installing uv..." + curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" +fi + +echo "โœ… uv found: $(uv --version)" + +# Install Python dependencies +echo "๐Ÿ“ฆ Installing dependencies..." +uv sync --extra tcptrace --extra ndt7 + +# Install pre-commit hooks +echo "๐Ÿช Installing pre-commit hooks..." +uv run pre-commit install + +# Run initial checks +echo "๐Ÿงช Running initial tests..." +uv run pytest -q + +echo "โœ… Development environment ready!" +echo "" +echo "Next steps:" +echo " 1. Review CONTRIBUTING.md for contribution guidelines" +echo " 2. Run 'uv run pytest' to verify everything works" +echo " 3. Start coding! ๐Ÿš€"