This repo is created as a part of the codingchallenges.fyi challenges.
This repo specifically tackle the challenge of replicate the CLI command wc.
Replicate these functionality from the Unix command line tool wc:
-c, --bytes
print the byte counts
-l, --lines
print the newline counts
-w, --words
print the word counts
-m, --chars
print the character counts As part of the challenge we will be using the provided test text file.
To setup this project you will have to have uv installed.
To run the commands it is simply running:
uv run main.py -hTo run the testing suite you will call:
uv run pytest -s -vTo run the linter you will call:
uv run ruff check --fix .