Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.