Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ command -v uv >/dev/null 2>&1 || pip install uv
source .venv/bin/activate

# Install both backend extras so the devcontainer can exercise either connection path.
uv sync --group dev --extra pyodbc --extra mssql
uv sync --all-extras
pre-commit install
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ THREADS ?= auto
.PHONY: dev
dev: ## Installs adapter in develop mode along with development dependencies
@\
uv pip install -e . --group dev && pre-commit install
uv sync --all-extras && pre-commit install

.PHONY: mypy
mypy: ## Runs mypy against staged changes for static type checking.
Expand Down Expand Up @@ -35,17 +35,17 @@ all: ## Runs all checks against staged changes.
.PHONY: unit
unit: ## Runs unit tests.
@\
pytest -n auto -ra -v tests/unit
uv run pytest -n auto -ra -v tests/unit

.PHONY: functional
functional: ## Runs functional tests.
@\
pytest -n $(THREADS) -ra -v tests/functional
uv run pytest -n $(THREADS) -ra -v tests/functional

.PHONY: test
test: ## Runs unit tests and code checks against staged changes.
@\
pytest -n auto -ra -v tests/unit; \
uv run pytest -n auto -ra -v tests/unit; \
pre-commit run black-check --hook-stage manual | grep -v "INFO"; \
pre-commit run ruff-check-manual --hook-stage manual | grep -v "INFO"; \
pre-commit run mypy-check --hook-stage manual | grep -v "INFO"
Expand Down