Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Jul 9, 2024
1 parent 1153951 commit 932f48f
Show file tree
Hide file tree
Showing 11 changed files with 264 additions and 419 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -31,16 +31,16 @@ jobs:
if: matrix.os == 'macos-latest'

- name: Install dependencies
run: poetry install
run: pip3 install poetry && poetry install

- name: Lint with flake8
- name: Lint with ruff
run: |
poetry run flake8 bip44 --exit-zero --count --show-source --statistics
poetry run ruff check -e
- name: Test with pytest
run: |
poetry run pytest --cov=bip44 --cov-report xml
poetry build
- name: Upload to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
25 changes: 7 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
hooks:
- id: isort

- repo: https://github.com/ambv/black
rev: 23.9.1
hooks:
- id: black
exclude: .venv
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.10.1
hooks:
- id: mypy
entry: mypy bip44/
pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-yaml

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
# allow "imported but unused" for pre-commit, forbid it elsewhere e.g. in vscode
args: ["--config=setup.cfg", "--ignore=E501,E402,F401,E203,W503"]
7 changes: 7 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
line-length = 88

[lint]
ignore = ["E501", "W605", "E203"]

[lint.mccabe]
max-complexity = 12
9 changes: 5 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"cSpell.words": ["coincurve", "keccak"]
"cSpell.words": [
"coincurve",
"keccak",
"mypy"
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 Weiliang Li
Copyright (c) 2020-2024 Weiliang Li

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ True

## Release Notes

### 0.1.1 ~ 0.1.4
### 0.1.1 ~ 0.1.5

- Support Python 3.10, 3.11, 3.12
- Bump dependencies
Expand Down
1 change: 1 addition & 0 deletions bip44/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
$$ |
\__|
"""

from .wallet import Wallet

__all__ = ("Wallet",)
587 changes: 223 additions & 364 deletions poetry.lock

Large diffs are not rendered by default.

25 changes: 11 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bip44"
version = "0.1.4"
version = "0.1.5"
# doc
authors = ["Weiliang Li <to.be.impressive@gmail.com>"]
description = "Simple Python bip44 implementation. Mnemonic + bip32."
Expand All @@ -11,25 +11,22 @@ readme = "README.md"
repository = "https://github.com/kigawas/python-bip44"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.8.1"

# 3rd party
bip32 = "^3.1"
bip32 = "^3.4"
mnemonic = "^0.20"
pycryptodome = "^3.16.0"
pycryptodome = "^3.19.1"

[tool.poetry.dev-dependencies]
black = "^23.7"
flake8 = {version = "^6.0.0", python = "^3.8.1"}
ipython = {version = "^8.14.0", python = "^3.9"}
[tool.poetry.group.dev.dependencies]
ipython = {version = "^8.26.0", python = "^3.10"}
mypy = "^1.5.1"
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
ruff = "^0.5.1"

[tool.poetry.group.test.dependencies]
pytest = "^8.2.0"
pytest-cov = "^5.0.0"

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[tool.isort]
multi_line_output = 3
profile = "black"
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

0 comments on commit 932f48f

Please sign in to comment.