Skip to content

Commit

Permalink
docs: 📝 adjust settings and dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
miragecentury committed Aug 23, 2024
1 parent dfdf75f commit a597c28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ httpx = "^0.27.0"
opentelemetry-instrumentation-fastapi = "^0.47b0"
opentelemetry-propagator-b3 = "^1.26.0"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
mypy = "^1.10.0"
types-requests = "^2.32.0.20240712"
Expand Down
5 changes: 4 additions & 1 deletion scripts/setup_dev_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# Poetry setup
poetry env use python3.12
poetry install --with test
poetry lock
poetry update --sync

# Pre-commit setup
pre-commit install

# Create .env file
if [[ ! -f .env ]]; then
cat > .env <<EOF
PATH="./src:./tests:\$PATH"
Expand All @@ -17,4 +19,5 @@ else
echo -e "\033[0;33m.env file already exists. Skipping...\033[0m"
fi

mkdir -p build/wheels
# Create build directory if it doesn't exist
mkdir -p build

0 comments on commit a597c28

Please sign in to comment.