Skip to content

Commit 1990159

Browse files
Add periods and remove ignore for linter rule
Signed-off-by: Spaceship Operations <[email protected]>
1 parent 16d87b3 commit 1990159

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ ignore = [
8383
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8484
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
8585
"S104", # Possible binding to all interface
86-
"D400", # first line in docstring should end in a period
87-
"D415", # first line in docstring should end in a period, question mark or exclamation point
8886
]
8987
[tool.ruff.per-file-ignores]
9088
"tests/**/*.py" = [

src/platformdirs/api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,41 +238,41 @@ def site_runtime_path(self) -> Path:
238238
return Path(self.site_runtime_dir)
239239

240240
def iter_config_dirs(self) -> Iterator[str]:
241-
""":yield: all user and site configuration directories"""
241+
""":yield: all user and site configuration directories."""
242242
yield self.user_config_dir
243243
yield self.site_config_dir
244244

245245
def iter_data_dirs(self) -> Iterator[str]:
246-
""":yield: all user and site data directories"""
246+
""":yield: all user and site data directories."""
247247
yield self.user_data_dir
248248
yield self.site_data_dir
249249

250250
def iter_cache_dirs(self) -> Iterator[str]:
251-
""":yield: all user and site cache directories"""
251+
""":yield: all user and site cache directories."""
252252
yield self.user_cache_dir
253253
yield self.site_cache_dir
254254

255255
def iter_runtime_dirs(self) -> Iterator[str]:
256-
""":yield: all user and site runtime directories"""
256+
""":yield: all user and site runtime directories."""
257257
yield self.user_runtime_dir
258258
yield self.site_runtime_dir
259259

260260
def iter_config_paths(self) -> Iterator[Path]:
261-
""":yield: all user and site configuration paths"""
261+
""":yield: all user and site configuration paths."""
262262
for path in self.iter_config_dirs():
263263
yield Path(path)
264264

265265
def iter_data_paths(self) -> Iterator[Path]:
266-
""":yield: all user and site data paths"""
266+
""":yield: all user and site data paths."""
267267
for path in self.iter_data_dirs():
268268
yield Path(path)
269269

270270
def iter_cache_paths(self) -> Iterator[Path]:
271-
""":yield: all user and site cache paths"""
271+
""":yield: all user and site cache paths."""
272272
for path in self.iter_cache_dirs():
273273
yield Path(path)
274274

275275
def iter_runtime_paths(self) -> Iterator[Path]:
276-
""":yield: all user and site runtime paths"""
276+
""":yield: all user and site runtime paths."""
277277
for path in self.iter_runtime_dirs():
278278
yield Path(path)

src/platformdirs/unix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ def _first_item_as_path_if_multipath(self, directory: str) -> Path:
224224
return Path(directory)
225225

226226
def iter_config_dirs(self) -> Iterator[str]:
227-
""":yield: all user and site configuration directories"""
227+
""":yield: all user and site configuration directories."""
228228
yield self.user_config_dir
229229
yield from self._site_config_dirs
230230

231231
def iter_data_dirs(self) -> Iterator[str]:
232-
""":yield: all user and site data directories"""
232+
""":yield: all user and site data directories."""
233233
yield self.user_data_dir
234234
yield from self._site_data_dirs
235235

0 commit comments

Comments
 (0)