**check-oldies** is a collection of programs that warn about old
things in code:
- **check-fixmes** warns about old FIXME or TODO annotations and
orphan FUTURE tags.
If we did not regularly check, we would forget about that FIXME note
we wrote a few months ago. **check-fixmes** warns us about it. It is
then our choice to act: fix it, remove it (because we decided it is
not worth to fix, or because it is not relevant anymore), or
postpone it.
FUTURE tags: We sometimes plan a broad modification that will span
multiple files. Instead of littering FIXME annotations everywhere,
we set a single FIXME annotation and a FUTURE-xxx tag on the same
line. Then, wherever we need to make a modification, we only
mention this FUTURE-xxx tag without any FIXME. If we ever remove the
FIXME but keep a FUTURE-xxx tag somewhere, it is a mistake and this
tool warns us.
- **check-branches** warns about old branches, surprisingly.
- **forget-me-not** runs both programs above on a set of Git
repositories and sends warning e-mails to authors of soon-to-be-old
annotations or branches.
In other words: **check-fixmes** and **check-branches** can be run as
part of the test suite of each project (by a continuous integration
system such as Jenkins). They break builds when they detect old
things. On the other hand, **forget-me-not** can be run once a week
on a set of projects to warn authors that some builds *will* break
soon if they do not take care of their old annotations or branches.
Example output
==============
::
$ check-fixmes
NOK: Some annotations are too old, or there are orphan FUTURE tags.
jdoe - 181 days - frobulator/api.py:12: # FIXME (jdoe): we should catch errors
jdoe - 100 days - frobulator/api.py:25: # TODO: this is slow, use the batch API instead
jsmith - 12 days - docs/index.rst:1: # FIXME: write documentation before open sourcing
::
$ check-branches
NOK: Some branches are too old.
john.smith@example.com - 92 days - jsmith/fix_frobs (https://github.com/Polyconseil/check-oldies/tree/jsmith/fix_frobs), linked to open PR/MR #1 (https://github.com/Polyconseil/check-oldies/pull/1)
Applicability
=============
**check-oldies** is written in Python but is language-agnostic. It
works on Git repositories but could be extended to other version
control systems. It integrates with GitHub but can do without it, and
could be extended to work with other code hosting platforms.
Requirements and installation
=============================
You must have Python 3.7 or later, and a relatively recent version of
Git. Git 2.1.4 (shipped with Debian Jessie) is known to work. More
recent versions should work and are supported.
Install with ``pip``, preferably in a virtual environment:
.. code-block:: console
$ python3 -m venv /path/to/your/virtualenv
$ source /path/to/your/virtualenv/bin/activate
$ pip install "check-oldies[toml]"
Features, configuration and more
================================
The `full documentation`_ has more details about the features and the
configuration, examples of the usage of FUTURE tags, how to
contribute, etc.
.. _full documentation: https://check-oldies.readthedocs.io/
Raw data
{
"_id": null,
"home_page": "https://check-oldies.readthedocs.io/en/latest/",
"name": "check-oldies",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "fixme todo quality",
"author": "Polyconseil",
"author_email": "opensource+check-oldies@polyconseil.fr",
"download_url": "",
"platform": "any",
"description": "**check-oldies** is a collection of programs that warn about old\nthings in code:\n\n- **check-fixmes** warns about old FIXME or TODO annotations and\n orphan FUTURE tags.\n\n If we did not regularly check, we would forget about that FIXME note\n we wrote a few months ago. **check-fixmes** warns us about it. It is\n then our choice to act: fix it, remove it (because we decided it is\n not worth to fix, or because it is not relevant anymore), or\n postpone it.\n\n FUTURE tags: We sometimes plan a broad modification that will span\n multiple files. Instead of littering FIXME annotations everywhere,\n we set a single FIXME annotation and a FUTURE-xxx tag on the same\n line. Then, wherever we need to make a modification, we only\n mention this FUTURE-xxx tag without any FIXME. If we ever remove the\n FIXME but keep a FUTURE-xxx tag somewhere, it is a mistake and this\n tool warns us.\n\n- **check-branches** warns about old branches, surprisingly.\n\n- **forget-me-not** runs both programs above on a set of Git\n repositories and sends warning e-mails to authors of soon-to-be-old\n annotations or branches.\n\nIn other words: **check-fixmes** and **check-branches** can be run as\npart of the test suite of each project (by a continuous integration\nsystem such as Jenkins). They break builds when they detect old\nthings. On the other hand, **forget-me-not** can be run once a week\non a set of projects to warn authors that some builds *will* break\nsoon if they do not take care of their old annotations or branches.\n\n\nExample output\n==============\n\n::\n\n $ check-fixmes\n NOK: Some annotations are too old, or there are orphan FUTURE tags.\n jdoe - 181 days - frobulator/api.py:12: # FIXME (jdoe): we should catch errors\n jdoe - 100 days - frobulator/api.py:25: # TODO: this is slow, use the batch API instead\n jsmith - 12 days - docs/index.rst:1: # FIXME: write documentation before open sourcing\n\n\n::\n\n $ check-branches\n NOK: Some branches are too old.\n john.smith@example.com - 92 days - jsmith/fix_frobs (https://github.com/Polyconseil/check-oldies/tree/jsmith/fix_frobs), linked to open PR/MR #1 (https://github.com/Polyconseil/check-oldies/pull/1)\n\n\nApplicability\n=============\n\n**check-oldies** is written in Python but is language-agnostic. It\nworks on Git repositories but could be extended to other version\ncontrol systems. It integrates with GitHub but can do without it, and\ncould be extended to work with other code hosting platforms.\n\n\nRequirements and installation\n=============================\n\nYou must have Python 3.7 or later, and a relatively recent version of\nGit. Git 2.1.4 (shipped with Debian Jessie) is known to work. More\nrecent versions should work and are supported.\n\nInstall with ``pip``, preferably in a virtual environment:\n\n.. code-block:: console\n\n $ python3 -m venv /path/to/your/virtualenv\n $ source /path/to/your/virtualenv/bin/activate\n\n $ pip install \"check-oldies[toml]\"\n\n\nFeatures, configuration and more\n================================\n\nThe `full documentation`_ has more details about the features and the\nconfiguration, examples of the usage of FUTURE tags, how to\ncontribute, etc.\n\n.. _full documentation: https://check-oldies.readthedocs.io/\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Warns about unattended branches and FIXME or TODO annotations",
"version": "0.8.8",
"split_keywords": [
"fixme",
"todo",
"quality"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d6be2e2d289e3250459748702c01c645eaf8eddf2017d6c861280cfb39ff10a6",
"md5": "4d61333394825f12bd4ebac3b822ca16",
"sha256": "a3d83bfb56b854970a71f48ed42675e1b075463d8fd7cfac391f0a1275f1d34e"
},
"downloads": -1,
"filename": "check_oldies-0.8.8-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "4d61333394825f12bd4ebac3b822ca16",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 18942,
"upload_time": "2023-01-11T14:05:51",
"upload_time_iso_8601": "2023-01-11T14:05:51.790999Z",
"url": "https://files.pythonhosted.org/packages/d6/be/2e2d289e3250459748702c01c645eaf8eddf2017d6c861280cfb39ff10a6/check_oldies-0.8.8-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-11 14:05:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "check-oldies"
}