forked from crypto-org-chain/chainlibpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request crypto-org-chain#40 from macong-cdc/refactor
Problem: unneeded files in the repo(fix crypto-org-chain#23)
- Loading branch information
Showing
24 changed files
with
984 additions
and
358 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,48 +1,72 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 9136088a246768144165fcc3ecc3d31bb686920a # frozen: v3.3.0 | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-toml | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: 4f4c0a4cda27980be153cca2cb7710c9fec57ba3 # frozen: v1.7.0 | ||
rev: v1.9.0 | ||
hooks: | ||
- id: python-use-type-annotations | ||
- id: python-check-blanket-noqa | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 6bb47b7acc1554ecb59d2855e9110c447162f674 # frozen: 5.6.4 | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: e66be67b9b6811913470f70c28b4d50f94d05b22 # frozen: 20.8b1 | ||
rev: 21.12b0 | ||
hooks: | ||
- id: black | ||
exclude: ^chainlibpy/generated/ | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: f3bfcb5479b4fa73b3fbb95a6390420575f20b51 # frozen: v0.790 | ||
rev: v0.931 | ||
hooks: | ||
- id: mypy | ||
args: | ||
# Suppress errors resulting from no access to dependencies | ||
- --ignore-missing-imports | ||
- --no-warn-unused-ignores | ||
# Allow multiple scripts (no .py postfix in name) to be checked in a single mypy invocation | ||
- --scripts-are-modules | ||
# NOTE: this hook does NOT read "files" and "exclude" configs from mypy configuration files | ||
files: ^chainlibpy/ | ||
exclude: ^chainlibpy/(generated/|amino/) # TODO to fix type errors in amino directory | ||
# NOTE: need to add additional_dependencies explicitly | ||
additional_dependencies: | ||
- grpc-stubs==1.24.7 | ||
- types-PyYAML==6.0.4 | ||
- types-protobuf==3.19.8 | ||
- types-requests==2.27.8 | ||
- types-toml==0.10.3 | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: bb6a530e28acab8d3551043b3e8709db8bcbac6b # frozen: 3.8.4 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-builtins | ||
# TODO FIX chainlibpy/amino/message.py:284:5: A003 class attribute "id" is shadowing a python builtin | ||
# when enable flake8-builtins option | ||
# - flake8-builtins | ||
- flake8-comprehensions | ||
|
||
- repo: https://github.com/myint/docformatter | ||
rev: de0bf8fa254d25a01383fecdb6335bea01daeae3 # frozen: v1.3.1 | ||
rev: v1.4 | ||
hooks: | ||
- id: docformatter | ||
args: | ||
- ./chainlibpy | ||
- --recursive | ||
- --in-place | ||
- --exclude | ||
- chainlibpy/generated | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 492440cdb4f3ca87eff24dea09c85881b0e5d597 # frozen: 0.4.0 | ||
rev: 0.7.13 | ||
hooks: | ||
- id: mdformat | ||
args: | ||
- CHANGELOG.md | ||
- CONTRIBUTING.md | ||
- README.md | ||
additional_dependencies: | ||
- mdformat-black | ||
- mdformat-toc |
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,3 +1,14 @@ | ||
from .cro_coin import MAX_CRO_SUPPLY, CROCoin # noqa: F401 | ||
from .grpc_client import CRO_NETWORK, GrpcClient, NetworkConfig # noqa: F401 | ||
from .wallet import Wallet # noqa: F401 | ||
from .cro_coin import MAX_CRO_SUPPLY, CROCoin | ||
from .grpc_client import CRO_NETWORK, GrpcClient, NetworkConfig | ||
from .transaction import Transaction | ||
from .wallet import Wallet | ||
|
||
__all__ = [ | ||
"CROCoin", | ||
"MAX_CRO_SUPPLY", | ||
"CRO_NETWORK", | ||
"GrpcClient", | ||
"NetworkConfig", | ||
"Transaction", | ||
"Wallet", | ||
] |
Oops, something went wrong.