From 2c26164a5a90aa14a19078d845769d3ec9fbb5ae Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 22 Feb 2021 07:24:37 +0000 Subject: - Added template for week 101. --- challenge-101/tyler-wardhaugh/python/.gitignore | 24 ++++++++++++++++++++++++ challenge-101/tyler-wardhaugh/python/Makefile | 13 +++++++++++++ challenge-101/tyler-wardhaugh/python/README.md | 24 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 challenge-101/tyler-wardhaugh/python/.gitignore create mode 100644 challenge-101/tyler-wardhaugh/python/Makefile create mode 100644 challenge-101/tyler-wardhaugh/python/README.md (limited to 'challenge-101/tyler-wardhaugh/python') diff --git a/challenge-101/tyler-wardhaugh/python/.gitignore b/challenge-101/tyler-wardhaugh/python/.gitignore new file mode 100644 index 0000000000..b1d9e2517e --- /dev/null +++ b/challenge-101/tyler-wardhaugh/python/.gitignore @@ -0,0 +1,24 @@ +### Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# IPython +profile_default/ +ipython_config.py + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +pythonenv* diff --git a/challenge-101/tyler-wardhaugh/python/Makefile b/challenge-101/tyler-wardhaugh/python/Makefile new file mode 100644 index 0000000000..bf7573b58a --- /dev/null +++ b/challenge-101/tyler-wardhaugh/python/Makefile @@ -0,0 +1,13 @@ +.PHONEY: help +help: + @grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ + sort | \ + awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +.PHONEY: test +test: ## run the test suite + @python -m unittest + +.PHONEY: satisfy-reqs +satisfy-reqs: ## ensure the requirements are installed + @python -m pip install -r requirements.txt diff --git a/challenge-101/tyler-wardhaugh/python/README.md b/challenge-101/tyler-wardhaugh/python/README.md new file mode 100644 index 0000000000..d540b43280 --- /dev/null +++ b/challenge-101/tyler-wardhaugh/python/README.md @@ -0,0 +1,24 @@ + +# The Weekly Challenge + +The Weekly Challenge - #100 - Tyler Wardhaugh + +## Usage + +Ensure requirements are satified (ideally in venv): + $ make satisfy-reqs + +Run Task 1: + + $ ./ch1.py T + +Run Task 2: + + $ ./ch2.py T + +Run the project's tests (all the samples from the task descriptions plus some others): + + $ make test + +## Requirements: +* [Python 3](https://www.python.org/) -- cgit