Skip to content

Commit 7c60b3b

Browse files
committed
Merge remote-tracking branch 'codra/feature/ruff' into develop
2 parents e93db54 + 277e970 commit 7c60b3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plotpy/widgets/colormap/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def setup_menu(self) -> QW.QMenu:
592592
def add_handle_at_relative_pos(
593593
self, relative_pos: float, new_color: QG.QColor | int | None = None
594594
) -> None:
595-
"""insert a handle in the widget at the relative position (between 0. and 1.).
595+
"""Insert a handle in the widget at the relative position (between 0. and 1.).
596596
Mutates the colormap object. If the relative position is already occupied by a
597597
handle, the new handle will be inserted at the closest available position then
598598
will be moved back to the requested position.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ target-version = "py39" # Assume Python 3.9.
9090
[tool.ruff.lint]
9191
# all rules can be found here: https://beta.ruff.rs/docs/rules/
9292
select = [
93-
"D202", # Pydocstyle
93+
"D202", # No blank lines allowed after function docstring.
94+
"D403", # First word of docstring should be properly capitalized.
9495
"E", # Pycodestyle error
9596
"F", # Pyflakes
9697
"I", # Isort

0 commit comments

Comments
 (0)