A collection of my algorithm challenges (LeetCode, Codewars, etc.), each backed by pytest unit tests.
- Challenges are inside src/algo_vault/..
- Tests are inside tests/..
- Python 3.10+
- uv (fast Python package manager, written in Rust.)
- Install via
curl -LsSf https://astral.sh/uv/install.sh | shorpip install uv. - See the installing uv guide docs.
- Install via
git clone https://github.com/tonyruizo/AlgoVaultPy.git
$ cd AlgoVaultPy
# Install dependencies from pyproject.toml (creates/uses .venv automatically)
$ uv sync# Run all tests
$ uv run pytest
# Run tests on a specific file (e.g., leetcode directory)
$ uv run pytest tests/test_leetcode/test_file_name.py # replace file_name
# Run a specific function within a file (e.g., leetcode directory)
$ uv run pytest tests/test_leetcode/test_file_name.py -k "function_name" # replace file_name and function_name