Extracts TODO: notes from source code.
Project description
todo-extractor
Extracts TODO comments from code.
The purpose of this project is to serve as an example of going from a script to a full-fledged project and to be used with the presentation Modern Python development at Omegapoints conference OpKoKo 19.2.
It might be turned into something useful, but currently it's main purpose is to give examples to the presentation.
Usage
Run it from the command line like:
$ todo_extractor <optional directory>
if no directory is specified the current directory will be used.
todo-extrator prints a JSON output with match, line number and filename.
Development
Development should preferable always be done in a virtualenv.
Installation is done with flit, which needs to be first be installed in the virtualenv (pip3 install flit
).
The package can be installed in development mode with
flit install --symlink
or on Windows
flit install --pth
This will install the package in editable mode and also install the dev-dependencies.
Testing
Testing can be done with pytest: pytest --cov=todo_extractor
which will also measure test coverage.
To test the installed package, use tox (tox
). This will test the installed package on all supported Python versions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file todo_extractor-0.2.2.tar.gz
.
File metadata
- Download URL: todo_extractor-0.2.2.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d5422dad519e596b27dbf5b57f2d013a8b34a8136b796d2e8e64463f313ff9 |
|
MD5 | a9e752532e3a78ee03a1a366e6b86d4e |
|
BLAKE2b-256 | e7305c64f90c6d3a6109558dede90046afc79475697391b95168f41a8096062f |
File details
Details for the file todo_extractor-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: todo_extractor-0.2.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2103e0453e31753e238d8aa1df1a1b97b45d1b1ffd62e7693dc8fd37206b113d |
|
MD5 | 8a2904e1f07f7dad608a0120de1e57d8 |
|
BLAKE2b-256 | 88aef17ffa5812d7876010a5f7cf542245bc58e358f61c04e21d611c70be93b9 |