Skip to content

Commit bd767de

Browse files
committed
#19 Update version to 0.1.4. Add type annotations to run_all_tests_and_lint.py and setup.py modules.
1 parent 97b5b96 commit bd767de

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

numdoclint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
check_python_module,
1818
check_python_module_recursively)
1919

20-
__version__: str = '0.1.3'
20+
__version__: str = '0.1.4'

run_all_tests_and_lint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
import numdoclint
88

9-
log_format = '-----------------------------------------\n'\
10-
'%(levelname)s : %(asctime)s : %(message)s'
9+
log_format: str = \
10+
'-----------------------------------------\n'\
11+
'%(levelname)s : %(asctime)s : %(message)s'
1112
logging.basicConfig(level=logging.DEBUG, format=log_format)
1213

1314

14-
def main():
15+
def main() -> None:
1516
"""
1617
Run tests and lint when executed via the command line.
1718
"""

setup.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
from numdoclint import __version__ as version
44

5-
description = 'Numdoc Lint provides features such as '\
6-
'NumPy style docstring code checking.'
5+
description: str = (
6+
'Numdoc Lint provides features such as '
7+
'NumPy style docstring code checking.'
8+
)
79

8-
long_description = \
9-
'Numdoc Lint provides features such as NumPy style '\
10-
'docstring code checking.\n\nPlease see github for more detail.'\
10+
long_description: str = (
11+
'Numdoc Lint provides features such as NumPy style '
12+
'docstring code checking.\n\nPlease see github for more detail.'
1113
'\nhttps://github.com/simon-ritchie/numdoclint'
14+
)
1215

1316
setup(
1417
name='numdoclint',

0 commit comments

Comments
 (0)