Skip to content

Commit

Permalink
Merge branch 'main' into fixCryptoAlg
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeshava authored Nov 13, 2024
2 parents 678ceb4 + f9bae8c commit 5195623
Show file tree
Hide file tree
Showing 125 changed files with 311 additions and 169 deletions.
28 changes: 28 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
reviews:
# Set the profile for reviews. Assertive profile yields more feedback, that may be considered nitpicky.
profile: "chill"
# Approve the review once CodeRabbit's comments are resolved. Note: In GitLab, all discussions must be resolved.
request_changes_workflow: false
# Generate a high level summary of the changes in the PR/MR description.
high_level_summary: false
# Generate a poem in the walkthrough comment.
poem: true
# Post review details on each review. Additionally, post a review status when a review is skipped in certain cases.
review_status: true
# Generate walkthrough in a markdown collapsible section.
collapse_walkthrough: false
# Abort the in-progress review if the pull request is closed or merged.
abort_on_close: true
auto_review:
# Automatic Review | Automatic code review
enabled: true
# Review draft PRs/MRs.
drafts: false
# Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive).
ignore_title_keywords:
- build(
chat:
# Enable the bot to reply automatically without requiring the user to tag it.
auto_reply: true
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration for xrpl-py."""

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down
138 changes: 78 additions & 60 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include = ["LICENSE"]
packages = [{ include = "xrpl" }]

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.8.1,<4.0"
base58 = "^2.1.0"
ECPy = "^1.2.5"
typing-extensions = "^4.2.0"
Expand All @@ -34,21 +34,19 @@ types-Deprecated = "^1.2.9"
pycryptodome = "^3.16.0"

[tool.poetry.dev-dependencies]
flake8 = "^4.0.1"
black = "23.3.0"
flake8 = "^7.0.0"
black = "24.8.0"
flake8-black = "^0.3.6"
flake8-docstrings = "^1.7.0"
mypy = "^1"
isort = "^5.11.5"
flake8-isort = "^6.0.0"
flake8-annotations = "2.7.0"
flake8-annotations = "^3.1.1"
flake8-absolute-import = "^1.0"
darglint = "^1.5.8"
sphinx-rtd-theme = "^3.0.0"
aiounittest = "^1.4.0"
coverage = "^7.2.7"
Jinja2 = "^3.1.4"
MarkupSafe = "2.1.5"
Sphinx = "^7.1.2"
poethepoet = "^0.29.0"

Expand Down
1 change: 1 addition & 0 deletions snippets/get_transaction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of how we can see a transaction that was validated on the ledger"""

from xrpl.clients import JsonRpcClient
from xrpl.models import Ledger, Tx

Expand Down
1 change: 1 addition & 0 deletions snippets/partial_payment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of how to handle partial payments"""

from xrpl.clients import JsonRpcClient
from xrpl.models import (
AccountLines,
Expand Down
1 change: 1 addition & 0 deletions snippets/set_regular_key.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of how we can setting a regular key"""

from xrpl.account import get_balance
from xrpl.clients import JsonRpcClient
from xrpl.models import Payment, SetRegularKey
Expand Down
1 change: 1 addition & 0 deletions snippets/submit_payment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example of how to send a transaction and see its validation response"""

from xrpl.account import get_balance
from xrpl.clients import JsonRpcClient
from xrpl.models import Payment, Tx
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/binarycodec/types/test_serialized_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TestSerializedType(TestCase):
def fixture_test(self, fixture: ValueTest):
"""Run the appropriate test for given fixture case."""
serialized_type: SerializedType = TYPE_MAP[fixture.type]
if type(fixture.test_json) == dict:
if isinstance(fixture.test_json, dict):
json_value = fixture.test_json
else:
json_value = str(fixture.test_json)
Expand Down
1 change: 1 addition & 0 deletions xrpl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""High-level XRPL exports."""

from xrpl import account, clients, core, ledger, models, transaction, utils, wallet
from xrpl.constants import CryptoAlgorithm, XRPLException

Expand Down
1 change: 1 addition & 0 deletions xrpl/account/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Methods for interacting with XRPL accounts."""

from xrpl.account.main import (
does_account_exist,
get_account_root,
Expand Down
1 change: 1 addition & 0 deletions xrpl/account/transaction_history.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""High-level methods to obtain information about account transaction history."""

import asyncio

from xrpl.asyncio.account import transaction_history
Expand Down
1 change: 1 addition & 0 deletions xrpl/asyncio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""High-level XRPL exports for async support."""

from xrpl.asyncio import account, clients, ledger, transaction, wallet

__all__ = ["account", "clients", "ledger", "transaction", "wallet"]
1 change: 1 addition & 0 deletions xrpl/asyncio/account/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Async methods for interacting with XRPL accounts."""

from xrpl.asyncio.account.main import (
does_account_exist,
get_account_root,
Expand Down
1 change: 1 addition & 0 deletions xrpl/asyncio/account/transaction_history.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""High-level methods to obtain information about account transaction history."""

from xrpl.asyncio.clients import Client, XRPLRequestFailureException
from xrpl.core.addresscodec import is_valid_xaddress, xaddress_to_classic_address
from xrpl.models.requests import AccountTx
Expand Down
1 change: 1 addition & 0 deletions xrpl/asyncio/clients/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous network clients for interacting with the XRPL."""

from xrpl.asyncio.clients.async_json_rpc_client import AsyncJsonRpcClient
from xrpl.asyncio.clients.async_websocket_client import AsyncWebsocketClient
from xrpl.asyncio.clients.client import Client
Expand Down
1 change: 1 addition & 0 deletions xrpl/asyncio/clients/async_json_rpc_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An async client for interacting with the rippled JSON RPC."""

from xrpl.asyncio.clients.async_client import AsyncClient
from xrpl.asyncio.clients.json_rpc_base import JsonRpcBase

Expand Down
1 change: 1 addition & 0 deletions xrpl/asyncio/ledger/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Async methods for obtaining information about the status of the XRP Ledger."""

from xrpl.asyncio.ledger.main import (
get_fee,
get_latest_open_ledger_sequence,
Expand Down
Loading

0 comments on commit 5195623

Please sign in to comment.