Skip to content

A collection of Python challenges. Solutions are type-checked using mypy and tested using pytest. GitHub Actions workflows are also included.

Notifications You must be signed in to change notification settings

tonyruizo/AlgoVaultPy

Repository files navigation

AlgoVaultPy

A collection of my algorithm challenges (LeetCode, Codewars, etc.), each backed by pytest unit tests.

tests type-check

  • Challenges are inside src/algo_vault/..
  • Tests are inside tests/..

Prerequisites

  • Python 3.10+
  • uv (fast Python package manager, written in Rust.)
    • Install via curl -LsSf https://astral.sh/uv/install.sh | sh or pip install uv.
    • See the installing uv guide docs.

Quick Start

git clone https://github.com/tonyruizo/AlgoVaultPy.git

$ cd AlgoVaultPy

# Install dependencies from pyproject.toml (creates/uses .venv automatically)
$ uv sync

Testing

# 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

About

A collection of Python challenges. Solutions are type-checked using mypy and tested using pytest. GitHub Actions workflows are also included.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages