GithubHelp home page GithubHelp logo

roulette's Introduction

Roulette!

Fancy a game of Roulette?

Rules:

  • spin the wheel with roulette
  • whatever TODO, FIXME, or type error you get, you must fix!
  • total number of TODOs, FIXMEs, or type error must go down

Inspired by (i.e. copied from) Andreas Kling's FIXME Roulette

Installation and Usage

cargo install fixme-roulette

Once that is done, navigate to the root of your directory and run

roulette

and you'll get something like this!

Number of 'pockets': 13
README.md:8:- whatever TODO, FIXME, or type error you get, you must fix!

For more options,

$ roulette --help

Spin the wheel, get a task!

Usage: roulette [OPTIONS]

Options:
  -p, --path <PATH>
          Path to directory (defaults to `.`). Note that `clippy` and `git grep` don't take a path, and require you to run `roulette` where you want the commands to be executed
  -c, --commands <COMMANDS>...
          Commands to run (any of git_grep, rip_grep, grep, mypy, ruff, flake8) - defaults git grep and mypy
  -g, --grep-keywords <GREP_KEYWORDS>...
          Optional keywords for grep: defaults to "TODO" and "FIXME"
      --supported
          Print supported commands
      --debug
          Print out failed commands (instead of silently ignoring, good for debugging)
      --all
          Print out every result, useful for debugging
  -h, --help
          Print help
  -V, --version
          Print version

Configuration files

Run roulette in the same directory as the configuration files, and the tools (e.g. mypy or ruff) should be able to find it.

Supported Commands

  • git_grep
  • rip_grep
  • grep
  • mypy
  • ruff
  • flake8
  • clippy

Soon-to-be Supported Commands

What else? Let me know.

roulette's People

Contributors

axel-jacobsen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.