Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 884 Bytes

File metadata and controls

40 lines (27 loc) · 884 Bytes

Leetcode Runner

Install deps

Install UV

curl -LsSf https://astral.sh/uv/install.sh | sh

Install Python deps

uv sync

Run the tests for a given problem

uv run pytest 0000_basic_fixture

When starting a new challenge...

cp -r 0000_basic_fixture {challenge_num}_{challenge_name}

Then modify the function under test

Code Formatting and Type Checking

This project uses ruff for code formatting and linting, and ty for type checking.

The goal is for this to be the best code it can be, to really challenge myself to write the best Python code I can. Running the type checker ensures the highest quality results.

To enable the pre-commit hook so that all code is automatically checked before committing:

uv sync --dev
uv run pre-commit install