aboutsummaryrefslogtreecommitdiff
path: root/challenge-101/tyler-wardhaugh/python
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2021-02-22 07:24:37 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2021-02-22 07:24:37 +0000
commit2c26164a5a90aa14a19078d845769d3ec9fbb5ae (patch)
tree81e69a21263b8d9439034f1146e16f7353905779 /challenge-101/tyler-wardhaugh/python
parentbc7cd7f201b47ceaf810b95bcdd9f881185152e2 (diff)
downloadperlweeklychallenge-club-2c26164a5a90aa14a19078d845769d3ec9fbb5ae.tar.gz
perlweeklychallenge-club-2c26164a5a90aa14a19078d845769d3ec9fbb5ae.tar.bz2
perlweeklychallenge-club-2c26164a5a90aa14a19078d845769d3ec9fbb5ae.zip
- Added template for week 101.
Diffstat (limited to 'challenge-101/tyler-wardhaugh/python')
-rw-r--r--challenge-101/tyler-wardhaugh/python/.gitignore24
-rw-r--r--challenge-101/tyler-wardhaugh/python/Makefile13
-rw-r--r--challenge-101/tyler-wardhaugh/python/README.md24
3 files changed, 61 insertions, 0 deletions
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/)