Skip to content

Commit d4e5ff7

Browse files
authored
feat: pydoclint config and ruff codes are breaking build (pyOpenSci#85)
* fix:pydoclint config * fix: ignore ruff codes added * One more fixed code
1 parent c9f9149 commit d4e5ff7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

template/pyproject.toml.jinja

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@ ignore = [
131131
"D203", # '1 blank line required before class docstring' ignored because we want no blank line.
132132
"D212", # 'Multi-line docstring summary should start at the first line' ignored because we want the summary to start on the second line.
133133
"D407", # 'Missing dashed underline after section' ignored because Google style docstrings don't underline.
134-
"ANN002", # 'Missing type annotation for {*args} in method'.
135-
"ANN003", # 'Missing type annotation for {*kwargs} in method'.
136134
"ANN101", # 'Missing type annotation for {self} in method'.
137135
"ANN102", # 'Missing type annotation for {cls} in classmethod'.
136+
"D413", # 'Missing blank line after section' ignored .
137+
"D401", # 'First line should be in imperative mood' ignored
138+
"ANN001", # Missing type annotation for {arg} in function" ignored
139+
"ANN201", # 'Missing type annotation for {return}'.
138140
]
139141
exclude = [
140142
{%- if use_vcs_version %}
@@ -165,7 +167,8 @@ lines-after-imports = 1
165167

166168
[tool.pydoclint]
167169
style = "numpy"
168-
arg-type-hints-in-docstring = false
170+
arg-type-hints-in-signature = false
171+
arg-type-hints-in-docstring = true
169172
check-return-types = false
170173
check-yield-types = false
171174
{%- if use_vcs_version %}

template/{% if use_test %}tests{% endif %}/system/test_import.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
def test_import():
77
"""Test that the package can be imported."""
8-
import {{ package_name }} # noqa: F401
8+
import {{ package_name }} # noqa: F401, PLC0415

0 commit comments

Comments
 (0)