Skip to main content

todoon integrates the TODOs in your codebase with your GitHub repository

Project description

image.png

PyPI - Version Coverage Status PyPI - Downloads Code style: black PyPI - Python Version PyPI - License

Quick Start

Install the app on GitHub and use todoon in your workflows!

Install TODO-Or-Not on GitHub

  - name: run-todoon
    uses: Start-Out/todo-or-not@v0.14.7           

Try it out locally! (see on PyPi)
Or, if you are using Arch Linux, there is an AUR Package maintained by @mward25.

pip install --upgrade todo-or-not
todoignore-util -pc .gitignore 
todoignore-util -ut .git
todoon

Overview

TODO or not to do, that is the question

TODO Or Not (todoon) is, in essence, a simple tool that checks your project for TODOs and FIXMEs and lets you know where they are.

You can also integrate this tool into your GitHub workflow via actions, and automate generating issues from the discovered TODOs and FIXMEs. These generated issues will include a link to the file in GitHub as well as the surrounding lines. Check out the wiki for more details on the GitHub Issues integration!

Example

Check out this example code and the issues that it yielded!

###########################
# Example usage of # todoon
###########################

def an_unfinished_function():
    # TODO Finish documenting todo-or-not
    print("Hello, I'm not quite done, there's more to do!")
    print("Look at all these things I have to do!")
    a = 1 + 1
    b = a * 2
    print("Okay I'm done!")


def a_broken_function():
    # This line might not show up in the generated issue because it's too far away
    #  from the line that triggered the issue.
    # The search for pertinent lines will stop when it hits a line break or the
    #  maximum number of lines, set by PERTINENT_LINE_LIMIT
    a = [
        1, 1, 2, 3
    ]
    b = sum(a)
    c = b * len(a)
    return c / 0  # FIXME I just don't know why this doesn't work!
    # Notice that this line will be collected

    # But this one won't, because there's some whitespace between it and the trigger!


def a_skipping_example():
    # Since the line below has `# todoon` in it, the checker will give it a pass even though it has the magic words!
    print("Sometimes you really have to write TODO or FIXME, like this!")  # todoon


def a_very_pretty_example():
    # TODO Titled Issue! | In this format, you can define a title and a body! Also labels like #example or #enhancement
    print("Check this out!")

Workflow Inputs

  • region [default: "en_us"] Give an ISO code for todoon to report in your language (limited language support, see the wiki)
  • issues [default: true] If true, will generate issues from TODO/FIXMEs found. Otherwise, TODO/FIXMEs will just be printed to workflow logs
  • max_issues [default: 10] Maximum number of issues todoon may generate, if any more are attempted then the run will fail
  • closed_issue_check [default: 0] todoon will fail if any more than the specified number of closed issues are found (set to -1 to allow any number of closed issues)
  • silent [default: true] If true, todoon will NOT exit nonzero if any TODO/FIXMEs are found (good for generating issues when expected)
  • verbosity [default: 2] 0. --very-quiet (none)
    1. --quiet (summary)
    2. (default)
    3. --verbose (all)
  • python_version [default: "3.11.7"] Version of Python to use (defaults to 3.11.7)
  • todoon_version [default: ""] Version of todoon to use ("" for the latest)

Contributing

Please target dev/contribute with your fork, and please use the appropriate PR template!

Help

See the wiki!

Fun Promo Video

https://github.com/Start-Out/todo-or-not/assets/10158233/d2c860f6-efd8-4ca4-b5d6-fcabe0bae6ce

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

todo_or_not-0.14.7.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

todo_or_not-0.14.7-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file todo_or_not-0.14.7.tar.gz.

File metadata

  • Download URL: todo_or_not-0.14.7.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for todo_or_not-0.14.7.tar.gz
Algorithm Hash digest
SHA256 82fd20524419c591bdab3d7f5f05ed4669cfd164edac16952576ab428d0ebf2e
MD5 db1700f0b8e9e194ef4641366910060d
BLAKE2b-256 2da8e0162a2da7e31afac0bd86bc5afa0efaebbe2bccbe57f31df4d56f1b9b92

See more details on using hashes here.

File details

Details for the file todo_or_not-0.14.7-py3-none-any.whl.

File metadata

  • Download URL: todo_or_not-0.14.7-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for todo_or_not-0.14.7-py3-none-any.whl
Algorithm Hash digest
SHA256 82abea0e64ee63da742f9daa29a79e7b208ff901bbea6eefeb8905227d0f9ffd
MD5 bbe654be3ce9431ea14da2f07c9b27e6
BLAKE2b-256 70021fffafb99eb9567440257d6c3e72b2bb24952fd8221afe7b8838b198d6fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page