kirkedev / euler

Project euler problems 1-100 in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Euler

Setup

Create a virtual environment and activate it

python -m venv .venv
source .venv/bin/activate

Verify the environment is activated and install dependencies

which python
pip install -r requirements.txt

Verify installation by running tests

pytest

To deactivate the environment, just run deactivate in the terminal. You should activate the environment when working on the project and deactivate when finished.

Activate git hooks

git config core.hooksPath .githooks

Commands

Run solutions

bin/solve           # Run all solutions
bin/solve 1         # Run the first solution
bin/solve 1 2 3     # Run the first 3 solutions 

Lint code, check types, and run tests

bin/check

About

Project euler problems 1-100 in python


Languages

Language:Python 99.4%Language:Shell 0.6%