Skip to content

Commit

Permalink
Merge pull request #1 from germanier/main
Browse files Browse the repository at this point in the history
fix: multiple small fixes
  • Loading branch information
ppsimatikas authored Oct 19, 2024
2 parents 5a62c1c + d054b31 commit 20d03fd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ install_dev:
pip3 install -r ./requirements_dev.txt

lint:
black --check src/ tests/
isort --check-only src/ tests/
flake8 src/ tests/
black --check chainbase_sdk/ tests/
isort --check-only chainbase_sdk/ tests/
flake8 chainbase_sdk/ tests/

format:
black src/ tests/
isort src/ tests/
flake8 src/ tests/
black chainbase_sdk/ tests/
isort chainbase_sdk/ tests/
flake8 chainbase_sdk/ tests/

test:
pytest -v
Expand Down
5 changes: 3 additions & 2 deletions chainbase_sdk/sql_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
"bigint": "int64",
"varchar": "object",
"timestamp": "datetime64[ns]",
"integer": "object",
"integer": "int64",
"BIGINT": "int64",
"VARCHAR": "object",
"TIMESTAMP": "datetime64[ns]",
"DATETIME": "datetime64[ns]",
"INT": "object",
"INT": "int64",
"CHAR": "object",
}


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "chainbase_sdk"
dynamic = ["version", "description", "license", "dependencies"]
dynamic = ["version", "description", "license", "dependencies", "authors"]

[build-system]
requires = ["setuptools>=42", "wheel"]
Expand All @@ -15,7 +15,7 @@ profile = "black"
[tool.pytest.ini_options]
addopts = """
--cov-report term-missing \
--cov src -ra"""
--cov chainbase_sdk -ra"""

[tool.coverage.report]
fail_under=90
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
description="A Python SDK for interacting with Chainbase APIs.",
author="Panos",
url="https://github.com/ppsimatikas/chainbase_python_sdk",
packages=find_packages(exclude=["tests"]),
packages=find_packages(include=["chainbase_sdk"], exclude=["tests"]),
install_requires=[
"requests==2.32.3",
"pandas==2.1.3"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from chainbase_sdk.sql import ChainbaseSQL


@patch("src.sql.ChainbaseAPI.post")
@patch("chainbase_sdk.sql.ChainbaseAPI.post")
class TestSQL(unittest.TestCase):
def setUp(self):
self.url = "https://api.chainbase.online/v1/dw/query"
Expand Down

0 comments on commit 20d03fd

Please sign in to comment.