Skip to content

Commit

Permalink
pre-commit autoupdated (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
fametrano committed Jul 7, 2023
1 parent 8a3c713 commit a1e7fd8
Show file tree
Hide file tree
Showing 126 changed files with 170 additions and 316 deletions.
28 changes: 14 additions & 14 deletions .pre-commit-config.yaml
Expand Up @@ -29,7 +29,7 @@ repos:
# - id: name-tests-test
- id: check-toml
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.6.0
rev: v0.8.1
hooks:
- id: markdownlint-cli2-fix
name: markdownlint-cli2-fix (in place fixes)
Expand All @@ -40,7 +40,7 @@ repos:
args: [--notice=COPYRIGHT]
files: python
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
rev: v2.2.0
hooks:
- id: autoflake
args:
Expand All @@ -54,14 +54,14 @@ repos:
language: python
types: [python]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.8.0
hooks:
- id: pyupgrade
args: [--py37-plus]
# exclude: *fixtures
language: python
types: [python]
- repo: https://github.com/pycqa/isort
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
Expand All @@ -70,7 +70,7 @@ repos:
language: python
types: [python]
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
rev: v1.7.3
hooks:
- id: docformatter
description: "Formats docstrings to follow PEP 257."
Expand All @@ -83,15 +83,15 @@ repos:
- id: pydocstringformatter
language: python
types: [python]
- repo: https://github.com/pycqa/pydocstyle
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
additional_dependencies: [tomli]
language: python
types: [python]
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa
language: python
Expand All @@ -103,7 +103,7 @@ repos:
language: python
types: [python]
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
name: black (in place fixes)
Expand All @@ -116,7 +116,7 @@ repos:
language: python
types: [python]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.7.5
hooks:
- id: bandit
name: bandit (btclib)
Expand All @@ -125,7 +125,7 @@ repos:
language: python
types: [python]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.7.5
hooks:
- id: bandit
name: bandit (tests)
Expand All @@ -137,8 +137,8 @@ repos:
exclude: btclib
language: python
types: [python]
- repo: https://github.com/pycqa/pylint
rev: v2.16.0b1
- repo: https://github.com/PyCQA/pylint
rev: v3.0.0a6
hooks:
- id: pylint
args: [
Expand All @@ -147,7 +147,7 @@ repos:
language: python
types: [python]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.4.1
hooks:
- id: mypy
language: python
Expand All @@ -161,6 +161,6 @@ repos:
pass_filenames: false
always_run: true
- repo: https://github.com/regebro/pyroma
rev: "4.1"
rev: "4.2"
hooks:
- id: pyroma
1 change: 0 additions & 1 deletion btclib/__init__.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""__init__ module for the btclib package."""

name = "btclib"
Expand Down
1 change: 0 additions & 1 deletion btclib/alias.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Aliases.
mypy aliases, documenting also coding input conventions.
Expand Down
1 change: 0 additions & 1 deletion btclib/amount.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Proper handling of monetary amounts.
A BTC monetary amount can be expressed
Expand Down
1 change: 0 additions & 1 deletion btclib/b32.py
Expand Up @@ -27,7 +27,6 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

"""SegWit address functions.
Some of these functions were originally from
Expand Down
1 change: 0 additions & 1 deletion btclib/b58.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Base58 address and WIF functions.
Base58 encoding of public keys and scripts as addresses, private keys as
Expand Down
1 change: 0 additions & 1 deletion btclib/base58.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Base58 encoding and decoding functions.
Binary-to-text encoding schemes are used to transport binary data across
Expand Down
1 change: 0 additions & 1 deletion btclib/bech32.py
Expand Up @@ -27,7 +27,6 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

"""Bech32(m) encoding and decoding functions.
BIP173: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
Expand Down
1 change: 0 additions & 1 deletion btclib/bip32/__init__.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Module btclib.bip32."""

from btclib.bip32.bip32 import (
Expand Down
1 change: 0 additions & 1 deletion btclib/bip32/bip32.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""BIP32 Hierarchical Deterministic Wallet functions.
A deterministic wallet is a hash-chain of private/public key pairs that
Expand Down
1 change: 0 additions & 1 deletion btclib/bip32/der_path.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""BIP32 derivation path and key origin.
A BIP 32 derivation path can be represented as:
Expand Down
1 change: 0 additions & 1 deletion btclib/bip32/key_origin.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""BIP32 key origin."""
from __future__ import annotations

Expand Down
1 change: 0 additions & 1 deletion btclib/bip32/slip132.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""SLIP132 address.
https://github.com/satoshilabs/slips/blob/master/slip-0132.md
Expand Down
1 change: 0 additions & 1 deletion btclib/block/__init__.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Module btclib.ecc."""

from btclib.block.block import Block
Expand Down
4 changes: 2 additions & 2 deletions btclib/block/block.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Block dataclass.
Dataclass encapsulating BlockHeader and list[Tx].
Expand Down Expand Up @@ -54,7 +53,8 @@ def height(self) -> int | None:
script_sig.
https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki
Block 227,835 (2013-03-24 15:49:13 GMT) was the last version 1 block.
Block 227,835 (2013-03-24 15
:49: 13 GMT) was the last version 1 block.
"""
if not self.transactions[0].is_coinbase():
raise BTClibValueError("first transaction is not a coinbase")
Expand Down
14 changes: 6 additions & 8 deletions btclib/block/block_header.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""BlockHeader dataclass.
Dataclass encapsulating version, previous block hash, merkle root, time,
Expand Down Expand Up @@ -61,16 +60,15 @@ def target(self) -> bytes:
def difficulty(self) -> float:
"""Return the BlockHeader difficulty.
Difficulty is the ratio of the genesis block target
over the BlockHeader target.
Difficulty is the ratio of the genesis block target over the
BlockHeader target.
It represents the average number of hash function evaluations
required to satisfy the BlockHeader target,
expressed as multiple of the genesis block difficulty used as
unit.
required to satisfy the BlockHeader target, expressed as
multiple of the genesis block difficulty used as unit.
The difficulty of the genesis block is 2^32 (4*2^30),
i.e. 4 GigaHash function evaluations.
The difficulty of the genesis block is 2^32 (4*2^30), i.e. 4
GigaHash function evaluations.
"""
# genesis block target
genesis_significand = 0x00FFFF
Expand Down
1 change: 0 additions & 1 deletion btclib/ec/__init__.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Module btclib.ec."""

from btclib.ec.curve import Curve, double_mult, mult, multi_mult, secp256k1
Expand Down
1 change: 0 additions & 1 deletion btclib/ec/curve.py
Expand Up @@ -7,7 +7,6 @@
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.

"""Elliptic curve classes and functions."""
from __future__ import annotations

Expand Down

0 comments on commit a1e7fd8

Please sign in to comment.