Skip to main content

Enforce ownership and ticketing of TODO notes.

Project description

flake8-todo-ticket

PyPI PyPI codecov CircleCI branch

Enforce ownership and ticketing of TODO notes.

This module provides a plugin for flake8, the Python code checker.

Installation

Install with pip:

pip install flake8-todo-ticket

The plugin officially supports Python >= 3.6 and flake8 >= 3.7. You may find other Python 3 versions work as well.

Usage

The plugin finds TODO comments without any indication as to why they exist.

def my_function():
    # TODO
    # ^ who knows why this is here?
    pass
./my_file.py:2:7: T400 Badly formatted TODO. Use TODO(name)[ticket_number]

To remove the error, add some basic information about this TODO:

def my_function():
    # TODO(tommilligan)[2856]
    #      ^ who owns this temporary workaround
    #                   ^ ticket number for this issue
    pass

Changelog

0.1.0

Features

  • first commit, based on flake8-fixme

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-todo-ticket-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

flake8_todo_ticket-0.1.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8-todo-ticket-0.1.0.tar.gz.

File metadata

  • Download URL: flake8-todo-ticket-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for flake8-todo-ticket-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4bedd158f24f67246b738f51dcdd79fec248fd5b38a9be69213ef1c443adb341
MD5 52cd7cdf94f2604ab21a28f4f8434a5c
BLAKE2b-256 0477cbf65c33137c3c91f374a04a60e73bb43d70f598649af27014d9900cdc50

See more details on using hashes here.

File details

Details for the file flake8_todo_ticket-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_todo_ticket-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for flake8_todo_ticket-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1fdb613b0fddfc6bf66bbf85f3aa518b6bb1e8e75dc9fa58beacfd4a83b90c3f
MD5 c62134d24b5f2ebe52730007b0d4b4a5
BLAKE2b-256 3bfcb79a36b2bc656b9f2d1f9c82f6094454a82b92213d44cd56e8151ea20376

See more details on using hashes here.

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