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.
Metadata
Release files for todo_extractor 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| todo_extractor-0.2.2.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| todo_extractor-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.8 kB
Release files / todo_extractor-0.2.2.tar.gz
| Download URL | todo_extractor-0.2.2.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22d5422dad519e596b27dbf5b57f2d013a8b34a8136b796d2e8e64463f313ff9
|
|
BLAKE2b-256 checksum How to use checksums |
e7305c64f90c6d3a6109558dede90046afc79475697391b95168f41a8096062f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Release files / todo_extractor-0.2.2-py3-none-any.whl
| Download URL | todo_extractor-0.2.2-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2103e0453e31753e238d8aa1df1a1b97b45d1b1ffd62e7693dc8fd37206b113d
|
|
BLAKE2b-256 checksum How to use checksums |
88aef17ffa5812d7876010a5f7cf542245bc58e358f61c04e21d611c70be93b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|