Skip to content

Commit

Permalink
Fixes formatting inconsistencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
thetacom committed Mar 23, 2024
1 parent 82c7551 commit 0d28306
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
13 changes: 0 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,6 @@ repos:
- 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 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
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -269,18 +269,18 @@ pythonPlatform = "Linux"

[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["D", "E", "F", "I", "N", "PL", "UP"]
ignore = ["D203", "D213", "PLR0913"]
lint.select = ["D", "E", "F", "I", "N", "PL", "UP"]
lint.ignore = ["D203", "D213", "PLR0913"]
exclude = ["tests"]

# Same as Black.
line-length = 120

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

target-version = "py39"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

0 comments on commit 0d28306

Please sign in to comment.