Skip to content

asjadjawed/py-algo-ds

Repository files navigation

Algorithms & Data Structures in Python 🐍

Info 🔎

Well documented code with test cases. This started as a repo for my students to practice.

Just delete the code, re-write your solution and see if the tests pass. Enjoy 😊

Includes the following all in pure python 🐍:

  • Common Data Structures 🧬
  • Common Algorithms 🪜
  • Problems to build your programming 💪

You can IPython as a REPL (in dependencies).

Commands 🏃‍♂️

Please run the following to enable Git Hooks.

On commit this runs:

  • testing
  • linting
  • formatting.

Install Git Hooks

Please Install Packages before installing Git Hooks

$ ./install-hooks.sh
# pre-commit installed at .git/hooks/pre-commit

Install Packages

$ uv sync
# Installing dependencies from lock file

Update Packages

$ uv sync --upgrade
$ pre-commit autoupdate
# Updating dependencies

Run pre-commit hooks

$ pre-commit run --all-files
# 20 files left unchanged

Code formatting

$ uvx ruff format
# 20 files left unchanged

Code Linting

$ uvx ruff check
# All checks passed!

Testing

$ pytest
# --> runs tests using pytest

About

Algorithms and Data Structures in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published