Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ class HeaderStyle:
class SPDXStatus(Enum):
"""SPDX header status enumeration"""
"""SPDX header status enumeration."""
EMPTY = "empty" # empty __init__.py
COMPLETE = "complete"
@@ -58,7 +58,7 @@ def header_insertion_index(style, lines):
def check_spdx_header_status(file_path):
"""Check SPDX header status of the file"""
"""Check SPDX header status of the file."""
license_line, copyright_line = spdx_header(file_style(file_path))
with open(file_path, encoding="UTF-8") as file:
lines = file.readlines()
@@ -92,7 +92,7 @@ def check_spdx_header_status(file_path):
def add_header(file_path, status):
"""Add or supplement SPDX header based on status"""
"""Add or supplement SPDX header based on status."""
style = file_style(file_path)
license_line, copyright_line = spdx_header(style)
full_spdx_header = f"{license_line}\n{copyright_line}"
@@ -137,7 +137,7 @@ def add_header(file_path, status):
def main():
"""Main function"""
"""Main function."""
files_missing_both = []
files_missing_copyright = []
files_missing_license = []