docstringify 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docstringify-0.5.0 → docstringify-0.5.1}/PKG-INFO +59 -6
- {docstringify-0.5.0 → docstringify-0.5.1}/README.md +58 -5
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/__init__.py +1 -1
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/PKG-INFO +59 -6
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/dependabot.yml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/release.yml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/workflows/ci.yml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/workflows/greetings.yml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.github/workflows/pypi-publish.yml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.gitignore +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.pre-commit-config.yaml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/.pre-commit-hooks.yaml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/LICENSE +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/pyproject.toml +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/setup.cfg +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/__main__.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/cli.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/components.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/converters/__init__.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/converters/base.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/converters/google.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/converters/numpydoc.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/exceptions.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/nodes/__init__.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/nodes/base.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/nodes/function.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/traversal/__init__.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/traversal/transformer.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify/traversal/visitor.py +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/SOURCES.txt +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/dependency_links.txt +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/entry_points.txt +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/requires.txt +0 -0
- {docstringify-0.5.0 → docstringify-0.5.1}/src/docstringify.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docstringify
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Flag missing docstrings and, optionally, generate them from signatures and type annotations.
|
|
5
5
|
Author-email: Stefanie Molin <docstringify@stefaniemolin.com>
|
|
6
6
|
License: MIT License
|
|
@@ -49,9 +49,58 @@ Requires-Dist: pytest-cov; extra == "dev"
|
|
|
49
49
|
Requires-Dist: pytest-randomly; extra == "dev"
|
|
50
50
|
Dynamic: license-file
|
|
51
51
|
|
|
52
|
-
#
|
|
52
|
+
# Docstringify
|
|
53
53
|
Flag missing docstrings and, optionally, generate them from signatures and type annotations.
|
|
54
54
|
|
|
55
|
+
## About
|
|
56
|
+
|
|
57
|
+
Given a file, `test.py`, with the following contents:
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
def say_hello(name: str = 'World') -> None:
|
|
61
|
+
print(f'Hello, {name}!')
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
You can use Docstringify in three modes:
|
|
65
|
+
|
|
66
|
+
1. Flag missing docstrings:
|
|
67
|
+
```
|
|
68
|
+
test is missing a docstring
|
|
69
|
+
test.say_hello is missing a docstring
|
|
70
|
+
```
|
|
71
|
+
2. Suggest docstring templates based on type annotations:
|
|
72
|
+
```
|
|
73
|
+
test is missing a docstring
|
|
74
|
+
Hint:
|
|
75
|
+
"""__description__"""
|
|
76
|
+
|
|
77
|
+
test.say_hello is missing a docstring
|
|
78
|
+
Hint:
|
|
79
|
+
"""
|
|
80
|
+
__description__
|
|
81
|
+
|
|
82
|
+
Parameters
|
|
83
|
+
----------
|
|
84
|
+
name : str, default="World"
|
|
85
|
+
__description__
|
|
86
|
+
"""
|
|
87
|
+
```
|
|
88
|
+
3. Add docstring templates to source code files:
|
|
89
|
+
```python
|
|
90
|
+
"""__description__"""
|
|
91
|
+
|
|
92
|
+
def say_hello(name: str = 'World') -> None:
|
|
93
|
+
"""
|
|
94
|
+
__description__
|
|
95
|
+
|
|
96
|
+
Parameters
|
|
97
|
+
----------
|
|
98
|
+
name : str, default="World"
|
|
99
|
+
__description__
|
|
100
|
+
"""
|
|
101
|
+
print(f'Hello, {name}!')
|
|
102
|
+
```
|
|
103
|
+
|
|
55
104
|
## Usage
|
|
56
105
|
|
|
57
106
|
### Pre-commit hook
|
|
@@ -60,7 +109,7 @@ Add the following to your `.pre-commit-config.yaml` file to block commits with m
|
|
|
60
109
|
|
|
61
110
|
```yaml
|
|
62
111
|
- repo: https://github.com/stefmolin/docstringify
|
|
63
|
-
rev: 0.5.
|
|
112
|
+
rev: 0.5.1
|
|
64
113
|
hooks:
|
|
65
114
|
- id: docstringify
|
|
66
115
|
```
|
|
@@ -69,7 +118,7 @@ By default, all docstrings are required. If you want to be more lenient, you can
|
|
|
69
118
|
|
|
70
119
|
```yaml
|
|
71
120
|
- repo: https://github.com/stefmolin/docstringify
|
|
72
|
-
rev: 0.5.
|
|
121
|
+
rev: 0.5.1
|
|
73
122
|
hooks:
|
|
74
123
|
- id: docstringify
|
|
75
124
|
args: [--threshold=0.75]
|
|
@@ -79,7 +128,7 @@ If you would like to see suggested docstring templates (inferred from type annot
|
|
|
79
128
|
|
|
80
129
|
```yaml
|
|
81
130
|
- repo: https://github.com/stefmolin/docstringify
|
|
82
|
-
rev: 0.5.
|
|
131
|
+
rev: 0.5.1
|
|
83
132
|
hooks:
|
|
84
133
|
- id: docstringify
|
|
85
134
|
args: [--suggest-changes=numpydoc]
|
|
@@ -89,7 +138,7 @@ Use `--make-changes` to create a copy of each file with docstring templates. Her
|
|
|
89
138
|
|
|
90
139
|
```yaml
|
|
91
140
|
- repo: https://github.com/stefmolin/docstringify
|
|
92
|
-
rev: 0.5.
|
|
141
|
+
rev: 0.5.1
|
|
93
142
|
hooks:
|
|
94
143
|
- id: docstringify
|
|
95
144
|
args: [--make-changes=google]
|
|
@@ -170,3 +219,7 @@ Docstring templates written to /.../test_docstringify.py
|
|
|
170
219
|
```
|
|
171
220
|
|
|
172
221
|
If you want to overwrite the file with the edits, pass `overwrite=True` to `DocstringTransformer()`.
|
|
222
|
+
|
|
223
|
+
## Contributing
|
|
224
|
+
|
|
225
|
+
Please consult the [contributing guidelines](https://github.com/stefmolin/docstringify/blob/main/CONTRIBUTING.md).
|
|
@@ -1,6 +1,55 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Docstringify
|
|
2
2
|
Flag missing docstrings and, optionally, generate them from signatures and type annotations.
|
|
3
3
|
|
|
4
|
+
## About
|
|
5
|
+
|
|
6
|
+
Given a file, `test.py`, with the following contents:
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
def say_hello(name: str = 'World') -> None:
|
|
10
|
+
print(f'Hello, {name}!')
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
You can use Docstringify in three modes:
|
|
14
|
+
|
|
15
|
+
1. Flag missing docstrings:
|
|
16
|
+
```
|
|
17
|
+
test is missing a docstring
|
|
18
|
+
test.say_hello is missing a docstring
|
|
19
|
+
```
|
|
20
|
+
2. Suggest docstring templates based on type annotations:
|
|
21
|
+
```
|
|
22
|
+
test is missing a docstring
|
|
23
|
+
Hint:
|
|
24
|
+
"""__description__"""
|
|
25
|
+
|
|
26
|
+
test.say_hello is missing a docstring
|
|
27
|
+
Hint:
|
|
28
|
+
"""
|
|
29
|
+
__description__
|
|
30
|
+
|
|
31
|
+
Parameters
|
|
32
|
+
----------
|
|
33
|
+
name : str, default="World"
|
|
34
|
+
__description__
|
|
35
|
+
"""
|
|
36
|
+
```
|
|
37
|
+
3. Add docstring templates to source code files:
|
|
38
|
+
```python
|
|
39
|
+
"""__description__"""
|
|
40
|
+
|
|
41
|
+
def say_hello(name: str = 'World') -> None:
|
|
42
|
+
"""
|
|
43
|
+
__description__
|
|
44
|
+
|
|
45
|
+
Parameters
|
|
46
|
+
----------
|
|
47
|
+
name : str, default="World"
|
|
48
|
+
__description__
|
|
49
|
+
"""
|
|
50
|
+
print(f'Hello, {name}!')
|
|
51
|
+
```
|
|
52
|
+
|
|
4
53
|
## Usage
|
|
5
54
|
|
|
6
55
|
### Pre-commit hook
|
|
@@ -9,7 +58,7 @@ Add the following to your `.pre-commit-config.yaml` file to block commits with m
|
|
|
9
58
|
|
|
10
59
|
```yaml
|
|
11
60
|
- repo: https://github.com/stefmolin/docstringify
|
|
12
|
-
rev: 0.5.
|
|
61
|
+
rev: 0.5.1
|
|
13
62
|
hooks:
|
|
14
63
|
- id: docstringify
|
|
15
64
|
```
|
|
@@ -18,7 +67,7 @@ By default, all docstrings are required. If you want to be more lenient, you can
|
|
|
18
67
|
|
|
19
68
|
```yaml
|
|
20
69
|
- repo: https://github.com/stefmolin/docstringify
|
|
21
|
-
rev: 0.5.
|
|
70
|
+
rev: 0.5.1
|
|
22
71
|
hooks:
|
|
23
72
|
- id: docstringify
|
|
24
73
|
args: [--threshold=0.75]
|
|
@@ -28,7 +77,7 @@ If you would like to see suggested docstring templates (inferred from type annot
|
|
|
28
77
|
|
|
29
78
|
```yaml
|
|
30
79
|
- repo: https://github.com/stefmolin/docstringify
|
|
31
|
-
rev: 0.5.
|
|
80
|
+
rev: 0.5.1
|
|
32
81
|
hooks:
|
|
33
82
|
- id: docstringify
|
|
34
83
|
args: [--suggest-changes=numpydoc]
|
|
@@ -38,7 +87,7 @@ Use `--make-changes` to create a copy of each file with docstring templates. Her
|
|
|
38
87
|
|
|
39
88
|
```yaml
|
|
40
89
|
- repo: https://github.com/stefmolin/docstringify
|
|
41
|
-
rev: 0.5.
|
|
90
|
+
rev: 0.5.1
|
|
42
91
|
hooks:
|
|
43
92
|
- id: docstringify
|
|
44
93
|
args: [--make-changes=google]
|
|
@@ -119,3 +168,7 @@ Docstring templates written to /.../test_docstringify.py
|
|
|
119
168
|
```
|
|
120
169
|
|
|
121
170
|
If you want to overwrite the file with the edits, pass `overwrite=True` to `DocstringTransformer()`.
|
|
171
|
+
|
|
172
|
+
## Contributing
|
|
173
|
+
|
|
174
|
+
Please consult the [contributing guidelines](https://github.com/stefmolin/docstringify/blob/main/CONTRIBUTING.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docstringify
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Flag missing docstrings and, optionally, generate them from signatures and type annotations.
|
|
5
5
|
Author-email: Stefanie Molin <docstringify@stefaniemolin.com>
|
|
6
6
|
License: MIT License
|
|
@@ -49,9 +49,58 @@ Requires-Dist: pytest-cov; extra == "dev"
|
|
|
49
49
|
Requires-Dist: pytest-randomly; extra == "dev"
|
|
50
50
|
Dynamic: license-file
|
|
51
51
|
|
|
52
|
-
#
|
|
52
|
+
# Docstringify
|
|
53
53
|
Flag missing docstrings and, optionally, generate them from signatures and type annotations.
|
|
54
54
|
|
|
55
|
+
## About
|
|
56
|
+
|
|
57
|
+
Given a file, `test.py`, with the following contents:
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
def say_hello(name: str = 'World') -> None:
|
|
61
|
+
print(f'Hello, {name}!')
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
You can use Docstringify in three modes:
|
|
65
|
+
|
|
66
|
+
1. Flag missing docstrings:
|
|
67
|
+
```
|
|
68
|
+
test is missing a docstring
|
|
69
|
+
test.say_hello is missing a docstring
|
|
70
|
+
```
|
|
71
|
+
2. Suggest docstring templates based on type annotations:
|
|
72
|
+
```
|
|
73
|
+
test is missing a docstring
|
|
74
|
+
Hint:
|
|
75
|
+
"""__description__"""
|
|
76
|
+
|
|
77
|
+
test.say_hello is missing a docstring
|
|
78
|
+
Hint:
|
|
79
|
+
"""
|
|
80
|
+
__description__
|
|
81
|
+
|
|
82
|
+
Parameters
|
|
83
|
+
----------
|
|
84
|
+
name : str, default="World"
|
|
85
|
+
__description__
|
|
86
|
+
"""
|
|
87
|
+
```
|
|
88
|
+
3. Add docstring templates to source code files:
|
|
89
|
+
```python
|
|
90
|
+
"""__description__"""
|
|
91
|
+
|
|
92
|
+
def say_hello(name: str = 'World') -> None:
|
|
93
|
+
"""
|
|
94
|
+
__description__
|
|
95
|
+
|
|
96
|
+
Parameters
|
|
97
|
+
----------
|
|
98
|
+
name : str, default="World"
|
|
99
|
+
__description__
|
|
100
|
+
"""
|
|
101
|
+
print(f'Hello, {name}!')
|
|
102
|
+
```
|
|
103
|
+
|
|
55
104
|
## Usage
|
|
56
105
|
|
|
57
106
|
### Pre-commit hook
|
|
@@ -60,7 +109,7 @@ Add the following to your `.pre-commit-config.yaml` file to block commits with m
|
|
|
60
109
|
|
|
61
110
|
```yaml
|
|
62
111
|
- repo: https://github.com/stefmolin/docstringify
|
|
63
|
-
rev: 0.5.
|
|
112
|
+
rev: 0.5.1
|
|
64
113
|
hooks:
|
|
65
114
|
- id: docstringify
|
|
66
115
|
```
|
|
@@ -69,7 +118,7 @@ By default, all docstrings are required. If you want to be more lenient, you can
|
|
|
69
118
|
|
|
70
119
|
```yaml
|
|
71
120
|
- repo: https://github.com/stefmolin/docstringify
|
|
72
|
-
rev: 0.5.
|
|
121
|
+
rev: 0.5.1
|
|
73
122
|
hooks:
|
|
74
123
|
- id: docstringify
|
|
75
124
|
args: [--threshold=0.75]
|
|
@@ -79,7 +128,7 @@ If you would like to see suggested docstring templates (inferred from type annot
|
|
|
79
128
|
|
|
80
129
|
```yaml
|
|
81
130
|
- repo: https://github.com/stefmolin/docstringify
|
|
82
|
-
rev: 0.5.
|
|
131
|
+
rev: 0.5.1
|
|
83
132
|
hooks:
|
|
84
133
|
- id: docstringify
|
|
85
134
|
args: [--suggest-changes=numpydoc]
|
|
@@ -89,7 +138,7 @@ Use `--make-changes` to create a copy of each file with docstring templates. Her
|
|
|
89
138
|
|
|
90
139
|
```yaml
|
|
91
140
|
- repo: https://github.com/stefmolin/docstringify
|
|
92
|
-
rev: 0.5.
|
|
141
|
+
rev: 0.5.1
|
|
93
142
|
hooks:
|
|
94
143
|
- id: docstringify
|
|
95
144
|
args: [--make-changes=google]
|
|
@@ -170,3 +219,7 @@ Docstring templates written to /.../test_docstringify.py
|
|
|
170
219
|
```
|
|
171
220
|
|
|
172
221
|
If you want to overwrite the file with the edits, pass `overwrite=True` to `DocstringTransformer()`.
|
|
222
|
+
|
|
223
|
+
## Contributing
|
|
224
|
+
|
|
225
|
+
Please consult the [contributing guidelines](https://github.com/stefmolin/docstringify/blob/main/CONTRIBUTING.md).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|