Skip to content

Commit

Permalink
Merge pull request #4 from thetacom/3-outdated-dependencies
Browse files Browse the repository at this point in the history
Updates dependencies
  • Loading branch information
thetacom authored Mar 23, 2024
2 parents ad12920 + 0d28306 commit 55ffac8
Show file tree
Hide file tree
Showing 8 changed files with 1,374 additions and 1,769 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9","3.10", "3.11"]
python-version: ["3.9","3.10", "3.11", "3.12"]
defaults:
run:
shell: bash
Expand Down
33 changes: 10 additions & 23 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.5.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand All @@ -22,26 +22,26 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.8
hooks:
- id: bandit
args: [-r, -ll, -c, pyproject.toml]
additional_dependencies: ['bandit[toml]']

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.3.0
hooks:
- id: black
args: [--safe, --quiet]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black, --filter-files, -l, "120"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.9.0
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
Expand All @@ -55,26 +55,13 @@ repos:
]

- repo: https://github.com/python-poetry/poetry
rev: 1.4.2
rev: 1.8.2
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt"]

- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.7.3
hooks:
- id: pydocstringformatter
args: [--max-summary-lines=2, --linewrap-full-docstring]
files: hexabyte

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
additional_dependencies: [tomli>=2.0.1]

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand All @@ -85,7 +72,7 @@ repos:
types: [file]

- repo: https://github.com/pylint-dev/pylint
rev: v2.17.1
rev: v3.1.0
hooks:
- id: pylint

Expand All @@ -96,19 +83,19 @@ repos:
args: [-d, --min=9, .]

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py39-plus]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.260
rev: v0.3.3
hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
rev: v6.2.1
hooks:
- id: rstcheck
args: [--report-level=warning, --ignore-directives, automodule]
Expand Down
1 change: 1 addition & 0 deletions hexabyte_entropy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Hexabyte Entropy Plugin."""

from hexabyte import plugins

from .widgets.entropy_panel import EntropyPanel
Expand Down
1 change: 1 addition & 0 deletions hexabyte_entropy/entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Transforms binary data into a entropy value.
"""

import math

from hexabyte.api import DataAPI
Expand Down
2 changes: 2 additions & 0 deletions hexabyte_entropy/widgets/entropy_panel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Entropy Info Panel."""

from typing import Union

from hexabyte.constants.sizes import BYTE_BITS
Expand Down Expand Up @@ -44,6 +45,7 @@ def __init__(
id: Optional ID for the widget.
classes: Optional initial classes for the widget.
disabled: Whether the entropy widget is disabled or not.
"""
super().__init__(name=name, id=id, classes=classes, disabled=disabled)
self.view = HCView([], color_map_func=entropy_type)
Expand Down
Loading

0 comments on commit 55ffac8

Please sign in to comment.