Skip to content

Commit

Permalink
Bump dependencies (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas authored Nov 25, 2024
1 parent 1153951 commit 6bbb139
Show file tree
Hide file tree
Showing 13 changed files with 456 additions and 694 deletions.
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 3
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ 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"
python-version: "3.13"

- name: Install dependencies
run: poetry install
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

runs-on: ${{ matrix.os }}

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

- name: Install poetry
run: pipx install poetry
run: pipx install poetry pre-commit

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -33,14 +33,14 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Lint with flake8
run: |
poetry run flake8 bip44 --exit-zero --count --show-source --statistics
- run: pre-commit run --all-files

- name: Test with pytest
run: |
poetry run pytest --cov=bip44 --cov-report xml
poetry build
- run: poetry run pytest --cov=bip44 --cov-report xml

- run: poetry build

- name: Upload to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
with:
token: ${{ secrets.CODECOV_TOKEN }}
130 changes: 7 additions & 123 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,131 +1,15 @@
# Byte-compiled / optimized / DLL files
# Python-generated files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
*.py[oc]
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints
*.egg-info

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
# Virtual environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
# dev
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

requirements.txt
.ruff_cache/
.pytest_cache/
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.8.0
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.13.0
hooks:
- id: mypy
entry: mypy bip44/
pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.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
15 changes: 11 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"cSpell.words": ["coincurve", "keccak"]
"cSpell.words": [
"coincurve",
"keccak",
"mypy"
],
"cSpell.ignorePaths": [
".git/",
".vscode/",
"pyproject.toml",
"poetry.lock"
]
}
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ True

## Release Notes

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

- Support Python 3.10, 3.11, 3.12
- Support Python 3.10, 3.11, 3.12, 3.13
- Bump dependencies
- Drop Python 3.6, 3.7

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",)
Loading

0 comments on commit 6bbb139

Please sign in to comment.