Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grantmcconnaughey/missing-docstrings
Search a Python project for functions with missing docstrings.
https://github.com/grantmcconnaughey/missing-docstrings
Last synced: 29 days ago
JSON representation
Search a Python project for functions with missing docstrings.
- Host: GitHub
- URL: https://github.com/grantmcconnaughey/missing-docstrings
- Owner: grantmcconnaughey
- Created: 2015-01-27T18:44:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T04:29:29.000Z (about 8 years ago)
- Last Synced: 2023-08-15T07:49:06.332Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Missing Docstrings
A command line utility to search a Python project for functions with missing docstrings.
## Usage
```
usage: missing_docstrings.py [-h] [--skipinit] [--skipinitpy] pathpositional arguments:
path The path to your Python projectoptional arguments:
-h, --help show this help message and exit
--skipinit Flag that indicates if __init__() methods should be skipped.
--skipinitpy Flag that indicates if __init__.py files should be skipped.
```## Examples
Search an entire directory structure for functions/methods with missing docstrings:
```
python missing_docstrings.py ~/Dev/django/superlists/
```Example output:
```
/Users/grant/Dev/django/superlists/lists/views.py
def home_page(request):def view_list(request, list_id):
/Users/grant/Dev/django/superlists/lists/forms.py
def __init__(self, for_list, *args, **kwargs):def save(self):
/Users/grant/Dev/django/superlists/functional_tests/test_layout_and_styling.py
def test_layout_and_styling(self):9 files scanned.
53 total functions
6 documented functions, 47 undocumented functions.
11.321% documented
```## Skipped files/directories
Files with the following names will be skipped:
* test.py
* tests.pyIf a file has one of the following directories in its path then it will also be skipped:
* migrations
* tests
* .Trash