Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(theme): RT01 Numpydoc Validation #952

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ exclude = [ # don't report on objects that match any of these regex
"^conftest",
"^tracingfuncs",
"^conf$",
"^theme",
]
override_SS05 = [ # override SS05 to allow docstrings starting with these words
"^Process ",
Expand Down
13 changes: 10 additions & 3 deletions topostats/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,20 @@ def blue() -> ListedColormap:
Returns
-------
ListedColormap
The 'blu' colormap.
The 'blue' colormap.
"""
return ListedColormap([[32 / 256, 226 / 256, 205 / 256]], "blue", N=256)

@staticmethod
def blue_purple_green():
"""RGBA colour map of just the colour blue."""
def blue_purple_green() -> ListedColormap:
"""
RGBA colour map of just the colour blue/purple/green.

Returns
-------
ListedColormap
The 'blue/purple/green' colormap.
"""
return ListedColormap(
[[0 / 256, 157 / 256, 229 / 256], [255 / 256, 100 / 256, 225 / 256], [0 / 256, 1, 139 / 256]],
"blue_purple_green",
Expand Down
Loading