Enforce ownership and ticketing of TODO notes.
This module provides a plugin for flake8
, the Python code checker.
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.
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
- first commit, based on
flake8-fixme