Skip to content

kornpow/leetcode_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Test fixture for running leetcode test cases. Uses uv! Reduce the usage of the Web UI!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages