Skip to content

Commit 2eeeef3

Browse files
committed
fix tests and precommit config
1 parent 4119d57 commit 2eeeef3

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.5.0
3+
rev: v4.4.0
44
hooks:
5-
- id: flake8
6-
language_version: python3
7-
args: [
8-
--max-line-length=100,
9-
# We did some funky thing in __init__.py, skip them for now.
10-
--exclude=*__init__.py
11-
]
125
- id: trailing-whitespace
136
language_version: python3
147
- id: end-of-file-fixer
@@ -28,6 +21,16 @@ repos:
2821
files: (\.(yaml|yml|eyaml))$
2922
- id: check-json
3023
files: \.(jshintrc|json)$
24+
- repo: https://github.com/pycqa/flake8
25+
rev: ''
26+
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+
]
3134
- repo: https://github.com/pre-commit/mirrors-autopep8
3235
rev: v1.5.1
3336
hooks:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#### Changed
1818

19-
- Support for up to python 3.11:
19+
- Support for up to python 3.11:
2020
- Bump web3 dependencies, bump some dev dependencies.
2121
- Replace deprecated eth_account methods on the account recovery.
2222
- Bump websockets to 10.0 to support python 3.10+

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ parso==0.6.2
1919
pexpect==4.8.0
2020
pickleshare==0.7.5
2121
pluggy==1.4
22-
pre-commit==1.21.0
22+
pre-commit==3.7.0
2323
pretend==1.0.8
2424
prompt-toolkit==3.0.5
2525
ptyprocess==0.6.0

tests/unit/resources/token_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ class TestTokenValidate:
151151
'proof',
152152
'claim',
153153
'decode',
154-
'recover_message',
155-
'encode_defunct',
154+
'recoverHash',
155+
'defunct_hash_message',
156156
'get_public_address',
157157
'epoch_time_now',
158158
'apply_did_token_nbf_grace_period',

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
2-
envlist = py36
2+
envlist = py311,py39,py310
33
skipsdist=True
44

55
[testenv]
6-
passenv = HOME SSH_AUTH_SOCK USER
6+
passenv = HOME,SSH_AUTH_SOCK,USER
77
envdir = .virtualenv_run_test
88
commands =
99
pip install -r requirements.txt

0 commit comments

Comments
 (0)