Skip to content

Commit 02715c5

Browse files
2.0.0 (#97)
* ruff * add: pre-commit.yml * update: dependabot * 3.10+ * uodate requirements.txt and requirements-dev.txt * update README * update changelog.md * use api.toaster.magic.link * update urls * update test.yml * Bump version to 2.0.0 * change date
1 parent e33c90d commit 02715c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+762
-691
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
# To get started with Dependabot version updates, you'll need to specify which
22
# package ecosystems to update and where the package manifests are located.
33
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
55

66
version: 2
77
updates:
88
- package-ecosystem: "pip"
99
directory: "/"
1010
schedule:
1111
interval: "weekly"
12-
day: "tuesday"
13-
commit-message:
14-
prefix: "[FIX]"
15-
prefix-development: "[CHORE]"
16-
include: scope
17-
# Fetch and update latest `github-actions` pkgs
18-
- package-ecosystem: github-actions
19-
directory: '/'
20-
schedule:
21-
interval: "weekly"
22-
day: "tuesday"
23-
commit-message:
24-
prefix: "[FIX]"
25-
prefix-development: "[CHORE]"
26-
include: scope
12+
groups:
13+
minor-and-patch:
14+
patterns:
15+
- "*"
16+
update-types:
17+
- "minor"
18+
- "patch"

.github/workflows/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pre-commit
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
- uses: pre-commit/[email protected]

.github/workflows/test.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,23 @@ on:
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
name: Run tests
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.6'
21-
cache: 'pip'
20+
python-version: "3.13"
21+
cache: "pip"
2222

2323
- name: Install Dependencies
24-
run: pip install -r requirements.txt -r requirements-dev.txt
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt -r requirements-dev.txt
2527
2628
- name: Run tests
2729
run: |
2830
make development
2931
source virtualenv_run/bin/activate
3032
make test
31-
32-
security:
33-
runs-on: ubuntu-20.04
34-
name: Run style/security checks
35-
36-
steps:
37-
- uses: actions/checkout@v3
38-
39-
- uses: actions/setup-python@v4
40-
with:
41-
python-version: '3.6'
42-
cache: 'pip'
43-
44-
- name: Install Dependencies
45-
run: pip install -r requirements.txt -r requirements-dev.txt
46-
47-
- name: Safety Check
48-
shell: bash
49-
run: |
50-
make development
51-
source virtualenv_run/bin/activate
52-
pip install -U safety
53-
safety check -i 44610 -i 51499 -i 51457 -i 39253 -i 44634 -i 50473 -i 52495 -i 53269

.pre-commit-config.yaml

Lines changed: 20 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,25 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
2+
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
3+
rev: v0.8.0
44
hooks:
5-
- id: trailing-whitespace
6-
language_version: python3
7-
- id: end-of-file-fixer
8-
language_version: python3
9-
- id: check-merge-conflict
10-
language_version: python3
11-
- id: requirements-txt-fixer
12-
language_version: python3
13-
- id: name-tests-test
14-
language_version: python3
15-
- id: double-quote-string-fixer
16-
language_version: python3
17-
- id: forbid-new-submodules
18-
language_version: python3
19-
- id: check-yaml
20-
language_version: python3
21-
files: (\.(yaml|yml|eyaml))$
22-
- id: check-json
23-
files: \.(jshintrc|json)$
24-
- repo: https://github.com/pycqa/flake8
25-
rev: ''
5+
- id: pre-commit-update
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v5.0.0
268
hooks:
27-
- id: flake8
28-
language_version: python3
29-
args: [
30-
--max-line-length=100,
31-
# We did some funky thing in __init__.py, skip them for now.
32-
--exclude=*__init__.py
33-
]
34-
- repo: https://github.com/pre-commit/mirrors-autopep8
35-
rev: v1.5.1
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-yaml
12+
- id: check-json
13+
- id: detect-private-key
14+
- id: requirements-txt-fixer
15+
- repo: https://github.com/codespell-project/codespell
16+
rev: v2.4.1
3617
hooks:
37-
- id: autopep8
38-
language_version: python3
39-
- repo: https://github.com/asottile/add-trailing-comma
40-
rev: v2.0.1
18+
- id: codespell
19+
exclude: ^locale/
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.12.5
4122
hooks:
42-
- id: add-trailing-comma
43-
- repo: https://github.com/asottile/reorder_python_imports
44-
rev: v2.2.0
45-
hooks:
46-
- id: reorder-python-imports
47-
language_version: python3
48-
- repo: https://github.com/asottile/pyupgrade
49-
rev: v2.1.1
50-
hooks:
51-
- id: pyupgrade
52-
args:
53-
- --py3-plus
54-
language_version: python3
23+
- id: ruff-check
24+
args: [--fix]
25+
- id: ruff-format

CHANGELOG.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
## Upcoming Changes
1+
## `2.0.0` - 2025-07-24
22

3-
#### Fixed
3+
#### 🚀 Major Changes
44

5-
- <PR-#ISSUE> ...
5+
- **Python Version Support**: Updated minimum Python version to 3.11+
6+
- Dropped support for Python 3.10 and below
7+
- Development environment uses Python 3.13
68

7-
#### Changed
9+
#### 📦 Dependencies
810

9-
- <PR-#ISSUE> ...
11+
- Updated core dependencies: `web3` (6→7.12.1), `websockets` (10.0→15.0.1), `requests` (2.32.4)
12+
- Updated development dependencies: `pre-commit` (3.7.0→4.2.0), `pytest` (8.4.1), `coverage` (7.9.2)
1013

11-
#### Added
14+
#### 🔧 Improvements
1215

13-
- <PR-#ISSUE> ...
14-
15-
## `1.2.0` - 04/16/2024
16-
17-
#### Changed
18-
19-
- Support for up to python 3.11:
20-
- Bump web3 dependencies, bump some dev dependencies.
21-
- Replace deprecated eth_account methods on the account recovery.
22-
- Bump websockets to 10.0 to support python 3.10+
16+
- Fixed pre-commit hook compatibility issues
17+
- Improved test coverage and multi-version testing
18+
- Enhanced documentation and development workflow
19+
- Updated all configuration files for Python 3.11+ support
2320

21+
---
2422

2523
## `1.0.0` - 07/05/2023
2624

@@ -30,14 +28,12 @@
3028
- [Security Enhancement]: Validate `aud` using Magic client ID.
3129
- Pull client ID from Magic servers if not provided in constructor.
3230

33-
3431
## `0.3.3` - 05/02/2023
3532

3633
#### Changed
3734

3835
- PR-#77: Removing NFT functionality, clients will interact with the NFT API directly via API calls.
3936

40-
4137
## `0.3.2` - 03/21/2023
4238

4339
#### Added

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Please note we have a **code of conduct**, please follow it in all your interact
66

77
## Setting up for Local Development
88

9-
1. Fork this repostiory.
9+
1. Fork this repository.
1010
2. Clone your fork.
1111
3. Create a new branch in your local repository with the following pattern:
1212

@@ -126,7 +126,7 @@ Violating these terms may lead to a permanent ban.
126126
#### 4. Permanent Ban
127127

128128
**Community Impact**: Demonstrating a pattern of violation of community
129-
standards, including sustained inappropriate behavior, harassment of an
129+
standards, including sustained inappropriate behavior, harassment of an
130130
individual, or aggression toward or disparagement of classes of individuals.
131131

132132
**Consequence**: A permanent ban from any sort of public interaction within

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ development: virtualenv_run install_prod_requirements install_dev_requirements i
66

77
.PHONY: virtualenv_run
88
virtualenv_run:
9-
virtualenv -p python3.11 virtualenv_run
9+
virtualenv -p python3.13 virtualenv_run
1010
virtualenv_run/bin/pip install --upgrade pip
1111

1212
.PHONY: install_prod_requirements

0 commit comments

Comments
 (0)