Skip to main content

Flake8 plugin to check that every TODO, FIXME, QQ etc comment has a JIRA ID next to it.

Project description

Flake8 JIRA TODO Checker

CircleCI PyPI PyPI PyPI PyPI

Flake8 plugin to check that every TODO, FIXME, QQ etc comment has a JIRA ID next to it.

In other words, this is valid:

def hacky_function():
    # TODO ABC-123 Stop reticulating splines
    ...

But this would raise the new flake8 error JIR001:

def hacky_function():
    # TODO Stop reticulating splines
    ...

Configuration

jira-project-ids

A list of valid JIRA project IDs can be provided via the flag --jira-project-ids or via the key jira-project-ids in a flake8 configuration file, e.g

jira-project-ids = ABC,DEF

If no project IDs are provided then all TODOs will be rejected.

todo-synonyms

A list of words which will be treated like TODO can be provided via the flag --todo-synonyms or via the key todo-synonyms in a flake8 configuration file. Defaults to:

todo-synonyms = TODO,FIX,QQ

Releasing

  1. poetry run bump2version minor
  2. git push && git push --tags
  3. tox -e pypi

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

flake8-jira-todo-checker-0.2.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

flake8_jira_todo_checker-0.2.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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