aboutsummaryrefslogtreecommitdiff
path: root/challenge-099/tyler-wardhaugh/python
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-099/tyler-wardhaugh/python')
-rw-r--r--challenge-099/tyler-wardhaugh/python/.gitignore24
-rw-r--r--challenge-099/tyler-wardhaugh/python/Makefile13
-rw-r--r--challenge-099/tyler-wardhaugh/python/README.md25
3 files changed, 62 insertions, 0 deletions
diff --git a/challenge-099/tyler-wardhaugh/python/.gitignore b/challenge-099/tyler-wardhaugh/python/.gitignore
new file mode 100644
index 0000000000..b1d9e2517e
--- /dev/null
+++ b/challenge-099/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-099/tyler-wardhaugh/python/Makefile b/challenge-099/tyler-wardhaugh/python/Makefile
new file mode 100644
index 0000000000..bf7573b58a
--- /dev/null
+++ b/challenge-099/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-099/tyler-wardhaugh/python/README.md b/challenge-099/tyler-wardhaugh/python/README.md
new file mode 100644
index 0000000000..976f770899
--- /dev/null
+++ b/challenge-099/tyler-wardhaugh/python/README.md
@@ -0,0 +1,25 @@
+
+# The Weekly Challenge
+
+The Weekly Challenge - #096 - Tyler Wardhaugh
+
+## Usage
+
+Ensure requirements are satified (ideally in venv):
+ $ make satisfy-reqs
+
+Run Task 1:
+
+ $ ./ch1.py S
+
+Run Task 2:
+
+ $ ./ch2.py S1 S2
+
+Run the project's tests (all the samples from the task descriptions plus some others):
+
+ $ make test
+
+## Requirements:
+* [Python 3](https://www.python.org/)
+* [NumPy](https://numpy.org/)