Skip to content

add validator ETH addresses (ERC20)#276

Merged
nandgator merged 21 commits intopython-validators:masterfrom
msamsami:master
Jun 27, 2023
Merged

add validator ETH addresses (ERC20)#276
nandgator merged 21 commits intopython-validators:masterfrom
msamsami:master

Conversation

@msamsami
Copy link
Copy Markdown
Contributor

This is a validator for ERC20 Ethereum (ETC) addresses.

@nandgator nandgator self-requested a review June 11, 2023 02:15
@nandgator nandgator self-assigned this Jun 11, 2023
@nandgator nandgator added the enhancement Issue/PR: A new feature label Jun 11, 2023
@msamsami
Copy link
Copy Markdown
Contributor Author

@joe733
Please merge this PR first and merge #277 after that to avoid conflicts.

Copy link
Copy Markdown
Collaborator

@nandgator nandgator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msamsami, please make this PR do one thing. Create another PR to move btc_adderess.py to validators/crypto_addresses.

@msamsami
Copy link
Copy Markdown
Contributor Author

@msamsami, please make this PR do one thing. Create another PR to move btc_adderess.py to validators/crypto_addresses.

@joe733
It's done. Here is the correct order for merging the PRs: #276 --> #277 --> #278

@nandgator nandgator added the waiting Issue/PR: Wating for reply label Jun 13, 2023
@nandgator nandgator removed the waiting Issue/PR: Wating for reply label Jun 17, 2023
@nandgator nandgator added the waiting Issue/PR: Wating for reply label Jun 17, 2023
@msamsami msamsami requested a review from nandgator June 26, 2023 12:04
@nandgator nandgator removed the waiting Issue/PR: Wating for reply label Jun 27, 2023
Copy link
Copy Markdown
Collaborator

@nandgator nandgator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one more change.

@nandgator nandgator added the waiting Issue/PR: Wating for reply label Jun 27, 2023
@msamsami msamsami requested a review from nandgator June 27, 2023 06:11
@nandgator nandgator removed the waiting Issue/PR: Wating for reply label Jun 27, 2023
Comment on lines +4 to +10
# external
import re

from eth_hash.auto import keccak

# local
from validators.utils import validator
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msamsami, I meant the change to be as follows:

# standard
import re

# external
from eth_hash.auto import keccak

# local
from validators.utils import validator

As re is from the standard library, eth_hash.auto.keccak is an external dependency and validators.utils.validator implies a local coupling.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joe733 Sorry for the confusion. It's done. 802487f

@nandgator nandgator added the waiting Issue/PR: Wating for reply label Jun 27, 2023
@nandgator nandgator removed the waiting Issue/PR: Wating for reply label Jun 27, 2023
@nandgator
Copy link
Copy Markdown
Collaborator

Tests have failed. Ref: https://github.com/python-validators/validators/actions/runs/5387269990/jobs/9778426797?pr=276#step:6:182

Also, please use black to format code. Ref: https://github.com/python-validators/validators/actions/runs/5387269990/jobs/9778426797?pr=276#step:6:203

Instead if you simply run tox, all of this could be resolved, locally.

@nandgator nandgator marked this pull request as draft June 27, 2023 08:12
@msamsami
Copy link
Copy Markdown
Contributor Author

@joe733 I added backend dependencies of eth-hash and reformatted code using black.

@msamsami msamsami marked this pull request as ready for review June 27, 2023 08:32
@nandgator nandgator merged commit 60c5314 into python-validators:master Jun 27, 2023
@nandgator
Copy link
Copy Markdown
Collaborator

@msamsami thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issue/PR: A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants