diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10509c654..d83e02360 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-docstring-first - id: check-merge-conflict @@ -11,25 +11,25 @@ repos: - id: no-commit-to-branch - id: trailing-whitespace - repo: https://github.com/psf/black - rev: '23.3.0' + rev: '24.8.0' hooks: - id: black types_or: [python, pyi] language_version: python3 args: [--config, ./pyproject.toml] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: [--settings-file, ./pyproject.toml] - repo: https://github.com/PyCQA/docformatter - rev: v1.6.5 + rev: v1.7.5 hooks: - id: docformatter additional_dependencies: [tomli] args: [--in-place, --config, ./pyproject.toml] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.265' + rev: 'v0.6.8' hooks: - id: ruff args: [ --select, "PL", --select, "F", --config, ./pyproject.toml ] @@ -40,13 +40,13 @@ repos: additional_dependencies: [toml] args: [--config, ./pyproject.toml] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.11.2 hooks: - id: mypy additional_dependencies: [types-python-dateutil] args: [--config-file, ./pyproject.toml] - repo: https://github.com/myint/eradicate - rev: '2.2.0' + rev: '2.3.0' hooks: - id: eradicate args: [] @@ -60,7 +60,7 @@ repos: additional_dependencies: [wily] args: [--no-detail] - repo: https://github.com/rstcheck/rstcheck - rev: 'v6.1.2' + rev: 'v6.2.4' hooks: - id: rstcheck additional_dependencies: [tomli] diff --git a/pyproject.toml b/pyproject.toml index e6e0b524e..07f625de4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -303,8 +303,10 @@ ignore = [ ] [tool.ruff] -select = ["PL",] exclude = ["*.pyi"] + +[tool.ruff.lint] +select = ["PL",] ignore = [ "PLR2004", # Magic value used in comparison. ] diff --git a/src/ramstk/views/gtk3/widgets/baseview.py b/src/ramstk/views/gtk3/widgets/baseview.py index 4bccb9639..7950d7f23 100644 --- a/src/ramstk/views/gtk3/widgets/baseview.py +++ b/src/ramstk/views/gtk3/widgets/baseview.py @@ -219,8 +219,8 @@ def do_make_layout(self) -> None: """Create a view with the following layout. +-----+---------------------------------------+ | B | WIDGETS | - | U | | | T | | | T | - | | O | | | N | | | S | | + | U | | | T | | | T | | | O | | | + N | | | S | | +-----+---------------------------------------+ self.make_toolbuttons -------> self @@ -267,10 +267,9 @@ def do_make_layout_lrr(self) -> Tuple[Gtk.HPaned, Gtk.VPaned]: """Create a view with the following layout. +-----+-------------------+-------------------+ | B | L. SIDE | R. - TOP | | U | | | | T | | - | | T | +-------------------+ | O | | R. BOTTOM | - | N | | | | S | | | - +-----+-------------------+-------------------+ + TOP | | U | | | | T | | | | T | + +-------------------+ | O | | R. BOTTOM | | N | | + | | S | | | +-----+-------------------+-------------------+ self.make_toolbuttons --------+--> self | _vpaned_right -----> _hpaned --+ @@ -294,9 +293,9 @@ def do_make_layout_llr(self) -> Tuple[Gtk.HPaned, Gtk.VPaned]: """Create a view with the following layout. +-----+-------------------+-------------------+ | B | L. TOP | R. - SIDE | | U | | | | T | | - | | T +-------------------+ | | O | L. BOTTOM | - | | N | | | | S | | | + SIDE | | U | | | | T | | | | T + +-------------------+ | | O | L. BOTTOM | | | N | | | + | S | | | +-----+-------------------+-------------------+ self.make_toolbuttons --------+--> self | @@ -321,10 +320,10 @@ def do_make_layout_llrr(self) -> Tuple[Gtk.VPaned, Gtk.VPaned]: """Create a view with the following layout. +-----+-------------------+-------------------+ | B | L. TOP | R. - TOP | | U | | | | T | | - | | T +-------------------+-------------------+ | O | L. BOTTOM | R. - BOTTOM | | N | | | | S | | - | +-----+-------------------+-------------------+ + TOP | | U | | | | T | | | | T + +-------------------+-------------------+ | O | L. BOTTOM | R. BOTTOM + | | N | | | | S | | | + +-----+-------------------+-------------------+ self.make_toolbuttons --------+--> self | _vpaned_left ---+--> _hpaned --+ | _vpaned_right --+ @@ -694,9 +693,9 @@ def __init__( super().__init__(configuration, logger) # Initialize private dictionary attributes. - self._dic_icons[ - "insert_part" - ] = f"{self.RAMSTK_USER_CONFIGURATION.RAMSTK_ICON_DIR}/32x32/insert_part.png" + self._dic_icons["insert_part"] = ( + f"{self.RAMSTK_USER_CONFIGURATION.RAMSTK_ICON_DIR}/32x32/insert_part.png" + ) # Initialize private list attributes. self._lst_callbacks.insert(0, super().do_request_insert_sibling)