Skip to content

Commit

Permalink
Merge branch 'main' into sphinx-autodoc-typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
tpvasconcelos committed Dec 23, 2024
2 parents 336022e + e942b58 commit 7e7d044
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Unreleased changes
### Internal

- Improve type annotations and use stricter pyright settings ({gh-pr}`291`)
- Use `sphinxcontrib.apidoc` to automatically generate API docs from the source code ({gh-pr}`296`)

---

Expand Down
7 changes: 5 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ ignore = [
"C408", # Unnecessary `dict` call (rewrite as a literal)

# pydocstyle
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D205", # 1 blank line required between summary line and description
Expand Down Expand Up @@ -79,16 +77,21 @@ ignore = [

[lint.per-file-ignores]
"cicd_utils/*" = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"INP001", # File {x} is part of an implicit namespace package. Add an `__init__.py`
"T201", # `print` found
]
"docs/conf.py" = [
"D100", # Missing docstring in public module
"ARG001", # Unused function argument
"INP001", # File {x} is part of an implicit namespace package. Add an `__init__.py`
"S101", # Use of assert detected
"T201", # `print` found
]
"tests/*" = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"INP001", # File {x} is part of an implicit namespace package. Add an `__init__.py`
"S101", # Use of assert detected
"SLF001", # Private member accessed: `_X`
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
"""setup.py script for ridgeplot."""

from __future__ import annotations

from setuptools import setup
Expand Down
1 change: 1 addition & 0 deletions src/ridgeplot/_color/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Color utilities."""
2 changes: 2 additions & 0 deletions src/ridgeplot/_color/colorscale.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Continuous colorscale utilities."""

from __future__ import annotations

import warnings
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_color/css_colors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Mapping of CSS named colors to RGB tuples."""

from __future__ import annotations

from typing_extensions import Literal
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_color/interpolation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Color interpolation utilities."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_color/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Common color utilities."""

from __future__ import annotations

from collections.abc import Collection
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_figure_factory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Ridgeline plot figure factory logic."""

from __future__ import annotations

from typing import TYPE_CHECKING, cast
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_hist.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Utilities for binning samples into histograms."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_kde.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Kernel density estimation (KDE) utilities."""

from __future__ import annotations

from collections.abc import Callable, Collection
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_missing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Missing sentinel class."""

from __future__ import annotations

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions src/ridgeplot/_obj/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Object-oriented interfaces."""
2 changes: 2 additions & 0 deletions src/ridgeplot/_obj/traces/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Object-oriented trace interfaces."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_obj/traces/area.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Area trace object."""

from __future__ import annotations

from typing import ClassVar
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_obj/traces/bar.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Bar trace object."""

from __future__ import annotations

from typing import ClassVar
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_obj/traces/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Base trace object and utilities."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
3 changes: 3 additions & 0 deletions src/ridgeplot/_types.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""Miscellaneous types, type aliases, type guards, and other related utilities
used throughout the package."""

from __future__ import annotations

from collections.abc import Collection
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Miscellaneous utilities and helper functions."""

from __future__ import annotations

from collections.abc import Collection
Expand Down
2 changes: 2 additions & 0 deletions src/ridgeplot/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Loading functions for toy datasets included with the package."""

from __future__ import annotations

import sys
Expand Down

0 comments on commit 7e7d044

Please sign in to comment.