-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure and run pre-commit * Require web3 library explicitly * Change dependencies * Reorder dependencies, remove black, flake8 and isort * Reorder requirements.txt * Remove unused pre-commit repos * Run Python 3.12 on CI * Remove flake8 and black references from the project * Sort requirements.txt * Update cla.yml --------- Co-authored-by: Hector Gómez Varela <[email protected]> Co-authored-by: Héctor Gómez <[email protected]>
- Loading branch information
1 parent
29be684
commit b994143
Showing
10 changed files
with
54 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: isort | ||
args: [ "--profile", "black", "--filter-files" ] | ||
- repo: https://github.com/psf/black | ||
rev: 24.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
- id: check-docstring-first | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: detect-private-key | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
types: [python] | ||
- id: check-yaml | ||
- id: check-added-large-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
|
||
[tool.pytest.ini_options] | ||
DJANGO_SETTINGS_MODULE = "config.settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
-r requirements.txt | ||
black==24.10.0 | ||
coverage==7.6.4 | ||
django-stubs==5.1.1 | ||
djangorestframework-stubs==3.15.1 | ||
factory-boy==3.3.1 | ||
Faker==30.8.1 | ||
flake8==7.1.1 | ||
isort==5.13.2 | ||
mypy==1.13.0 | ||
pre-commit==4.0.1 | ||
pytest-django==4.9.0 | ||
responses==0.25.3 | ||
|
||
# mypy and PEP 561 stubs | ||
mypy==1.13.0 | ||
django-stubs==5.1.1 | ||
djangorestframework-stubs==3.15.1 | ||
types-requests==2.32.0.20241016 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
boto3==1.35.57 | ||
Django==5.1.2 | ||
django-cors-headers==4.6.0 | ||
djangorestframework==3.15.2 | ||
djangorestframework-camel-case==1.4.2 | ||
django-storages==1.14.4 | ||
django-stubs-ext==5.1.1 | ||
djangorestframework==3.15.2 | ||
djangorestframework-camel-case==1.4.2 | ||
drf-yasg[validation]==1.21.7 | ||
safe-eth-py[django]==5.8.0 | ||
eth-typing==4.1.0 | ||
eth-utils==4.1.1 | ||
gunicorn==23.0.0 | ||
Pillow==11.0.0 | ||
psycopg2-binary==2.9.10 | ||
requests==2.32.3 | ||
safe-eth-py[django]==5.8.0 | ||
|
||
# Without pin, safe-eth-py 5.8.0 installs >= 7 which breaks django-check job | ||
# > ImportError: cannot import name 'geth_poa_middleware' from 'web3.middleware' | ||
# TODO: Remove when safe-eth-py updates web3 to >= 7 | ||
# https://github.com/safe-global/safe-eth-py/pull/1315 | ||
web3==6.20.2 | ||
web3==6.20.2 |