Skip to content

Commit

Permalink
add noqa to main docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Nov 11, 2023
1 parent c934748 commit 046ab26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev177"
version = "0.0.0.dev178"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
4 changes: 2 additions & 2 deletions src/repodynamics/meta/files/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def init_docstring(self) -> list[tuple[DynamicFile, str]]:
width=self._meta["package"].get("dev_config", {}).get("max_line_length", 100),
replace_whitespace=False,
)
docstring = f'"""{docstring_text}\n"""\n'
docstring = f'"""{docstring_text}\n""" # noqa: D400\n'

package_dir_info = self._package_dir_output[0][0]
current_dir_path = (
Expand All @@ -151,7 +151,7 @@ def init_docstring(self) -> list[tuple[DynamicFile, str]]:
else:
file_content = """__version_details__ = {"version": "0.0.0"}
__version__ = __version_details__["version"]"""
pattern = re.compile(r'^((?:[\t ]*#.*\n|[\t ]*\n)*)("""(?:.|\n)*?"""(?:\n|$))', re.MULTILINE)
pattern = re.compile(r'^((?:[\t ]*#.*\n|[\t ]*\n)*)("""(?:.|\n)*?"""(?:[ \t]*#.*)?(?:\n|$))', re.MULTILINE)
match = pattern.match(file_content)
if not match:
# If no docstring found, add the new docstring at the beginning of the file
Expand Down

0 comments on commit 046ab26

Please sign in to comment.