Skip to content

Commit 89be4fd

Browse files
committed
Move pydocstyle config to setup.cfg
1 parent a0072ec commit 89be4fd

File tree

4 files changed

+39
-34
lines changed

4 files changed

+39
-34
lines changed

.pydocstyle

Lines changed: 0 additions & 17 deletions
This file was deleted.

mypy.ini

Lines changed: 0 additions & 16 deletions
This file was deleted.

setup.cfg

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,41 @@ universal = 1
5353

5454
[metadata]
5555
license_file = LICENSE
56+
57+
[mypy]
58+
check_untyped_defs = True
59+
disallow_incomplete_defs = True
60+
disallow_subclassing_any = True
61+
disallow_untyped_calls = True
62+
disallow_untyped_decorators = False
63+
disallow_untyped_defs = True
64+
follow_imports = silent
65+
ignore_missing_imports = True
66+
no_implicit_optional = True
67+
strict_optional = True
68+
warn_no_return = True
69+
warn_redundant_casts = True
70+
warn_return_any = True
71+
warn_unused_configs = True
72+
warn_unused_ignores = True
73+
74+
[mypy-vws/_version]
75+
ignore_errors = True
76+
77+
[pydocstyle]
78+
# No summary lines
79+
# - D200
80+
# - D205
81+
# - D400
82+
# We don't want blank lines before class docstrings
83+
# - D203
84+
# We don't need docstrings to start at the first line
85+
# - D212
86+
# Allow blank lines after function docstrings
87+
# - D202
88+
# Section names do not need to end in newlines
89+
# - D406
90+
# Section names do not need dashed underlines
91+
# - D407
92+
# No blank line is needed after the last section
93+
ignore = D200,D202,D203,D205,D212,D400,D406,D407,D413

src/vws/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
]
1010

1111
from ._version import get_versions
12-
__version__ = get_versions()['version']
12+
__version__ = get_versions()['version'] # type: ignore
1313
del get_versions

0 commit comments

Comments
 (0)