Skip to content

Commit

Permalink
Merge pull request #15 from DanielAvdar/init
Browse files Browse the repository at this point in the history
Optimizing Package Dependencies
  • Loading branch information
DanielAvdar authored Mar 11, 2024
2 parents e68e1c5 + d2b90ed commit da2f18c
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- 'pandas_pyarrow/**'
- 'tests/**'
- '.github/workflows/ci.yml'
- 'pyproject.toml'
workflow_dispatch:
jobs:
tests:
Expand Down Expand Up @@ -36,6 +37,7 @@ jobs:
python-version: '3.11'
cache: poetry
- run: poetry install
- run: poetry check
- run: poetry run pytest --cov=pandas_pyarrow --cov-report=xml
- uses: codecov/codecov-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- run: pipx install poetry
- uses: actions/setup-python@v4
- run: poetry install
- run: poetry check
- run: poetry run pytest
- run: poetry version ${{ github.ref_name }}
- run: poetry build
Expand Down
111 changes: 101 additions & 10 deletions poetry.lock

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

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,24 @@ packages = [{ include = "pandas_pyarrow", from = "." }]
python = ">=3.9,<3.13"
pandas = ">=2"
pyarrow = ">=7.0.0, <=15.0.0"
db-dtypes = { extras = ["db-dtypes"], version = ">=1" }
pandas-gbq = { extras = ["bigquery"], version = ">=0.15.0", optional = true }
db-dtypes = { version = ">=1", optional = true }
pandas-gbq = { version = ">=0.15.0", optional = true }

[tool.poetry.dev-dependencies]
pytest = ">= 7.1.2"
hypothesis = ">= 6.23.3"
pre-commit = ">= 2.20.0"
pytest-cov = ">= 4.0.0"
mypy = ">= 0.991"
db-dtypes = ">=1"
pytest = ">=7.1.2"
hypothesis = ">=6.23.3"
pre-commit = ">=2.20.0"
pytest-cov = ">=4.0.0"
mypy = ">=0.991"
pytest-parametrization = "^2022"
types-pytz = "*"
pandas-stubs = "*"
ruff = "^0.3.1"

[tool.poetry.extras]
db-dtypes = ["db-dtypes"]
pandas-gbq = ["bigquery"]
bigquery = ["pandas-gbq"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand All @@ -71,12 +72,12 @@ include = ["pyproject.toml", "tests/**", "pandas_pyarrow/**", ]

[tool.ruff.lint]
select = ["F", "B", "I", "F", "W", "E", "A", "N"]

fixable = ["ALL"]

[tool.ruff.lint.isort]
combine-as-imports = true
section-order = ["future", "standard-library", "first-party", "local-folder", "third-party", ]

[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
Expand All @@ -85,7 +86,6 @@ warn_redundant_casts = true
warn_unused_ignores = true
strict_optional = false


[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true

0 comments on commit da2f18c

Please sign in to comment.