Skip to content

Commit

Permalink
chore: update tool versions for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
weibullguy committed Oct 2, 2024
1 parent f3d02d0 commit 599972b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ]
Expand All @@ -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: []
Expand All @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,10 @@ ignore = [
]

[tool.ruff]
select = ["PL",]
exclude = ["*.pyi"]

[tool.ruff.lint]
select = ["PL",]
ignore = [
"PLR2004", # Magic value used in comparison.
]
31 changes: 15 additions & 16 deletions src/ramstk/views/gtk3/widgets/baseview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 --+
Expand All @@ -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 |
Expand All @@ -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 --+
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 599972b

Please sign in to comment.