Skip to content

Commit

Permalink
Ch131 (Python): prep for challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerw committed Sep 25, 2021
1 parent dce2b63 commit 0517bb5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions challenge-131/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
30 changes: 30 additions & 0 deletions challenge-131/tyler-wardhaugh/python/README.md
@@ -0,0 +1,30 @@

# The Weekly Challenge

The Weekly Challenge - #131 - Tyler Wardhaugh

## Usage

Ensure requirements are satified (ideally in venv):
$ make satisfy-reqs

Run Task 1:

$ ./ch1.py COLL
# e.g.:
$ ./ch-1.py "[1, 2, 3, 6, 7, 8, 9]"


Run Task 2:

$ ./ch2.py DELIMETERS SEARCH_STRING
# e.g.:
$ ./ch2.py '""[]()' '"I like (parens) and the Apple ][+" they said.'


Run the project's tests (all the samples from the task descriptions plus some others):

$ make test

## Requirements:
* [Python 3](https://www.python.org/)
Empty file.

0 comments on commit 0517bb5

Please sign in to comment.