Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wc Coding Challenges

This repo is created as a part of the codingchallenges.fyi challenges. This repo specifically tackle the challenge of replicate the CLI command wc.

The Challenge

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.

Development

To setup this project you will have to have uv installed.

To run the commands it is simply running:

uv run main.py -h

To run the testing suite you will call:

uv run pytest -s -v

To run the linter you will call:

uv run ruff check --fix .

About

This repo is created as a part of the codingchallenges.fyi challenges. This repo specifically tackle the challenge of replicate the CLI command wc.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages