Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
contents: read
env:
OS: "ubuntu-latest"
PYTHON: "3.12"
PYTHON: "3.14"
steps:
- name: Acquire sources
uses: actions/checkout@v6
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
include:
- os: "macos-latest"
python-version: "3.12"
python-version: "3.14"
- os: "windows-latest"
python-version: "3.12"
python-version: "3.14"
defaults:
run:
shell: bash
Expand Down
46 changes: 16 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand All @@ -38,6 +40,7 @@ classifiers = [
]
dependencies = [
"google-cloud-bigquery[bqstorage, pandas]>=3.8",
"numpy>=2.2.6",
"pandas>=2.0",
"pandas-gbq>=0.19",
"sqlvalidator>=0.0.20",
Expand All @@ -51,11 +54,11 @@ Releases = "https://github.com/ottogroup/bquest/releases"

[dependency-groups]
dev = [
"creosote>=4.0.0",
"mypy>=1.3.0",
"deptry>=0.25.1",
"pip-audit>=2.8.0",
"poethepoet>=0.20.0",
"ruff>=0.2.2",
"ty>=0.0.40",
"types-mock>=5.0.0.6",
"zizmor>=1.3.1",
]
Expand All @@ -80,25 +83,12 @@ default-groups = [
]
required-version=">=0.6.0"

[tool.hatch.build.targets.sdist]
include = [
"bquest",
"LICENSE",
"CHANGELOG.rst",
]

[tool.hatch.build.targets.wheel]
include = [
"bquest",
"LICENSE",
"CHANGELOG.rst",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build>=0.9.21,<0.12.0"]
build-backend = "uv_build"

[tool.ruff]
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
line-length = 120

[tool.ruff.lint]
Expand Down Expand Up @@ -130,25 +120,25 @@ select = [
unfixable = ["ERA", "F401", "F841", "T20", "ERA001"]

[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
"src/bquest/**/__init__.py" = ["F401"]
"tests/*" = ["S101"]

[tool.poe.tasks]
# Linting and formatting.
lint = [
{ cmd = "ruff check ." },
{ cmd = "ruff format --check bquest tests" },
{ cmd = "ruff format --check" },
]

format = [
{ cmd = "ruff format bquest tests" },
{ cmd = "ruff check --fix bquest tests" },
{ cmd = "ruff format" },
{ cmd = "ruff check --fix" },
]

type = "mypy --ignore-missing-imports --strict bquest"
type = "ty check src/bquest"

check_vulnerable_dependencies = "pip-audit"
check_unused_dependencies = "creosote"
check_unused_dependencies = "deptry src/bquest"
check_githubactions = "zizmor .github/workflows/"


Expand All @@ -175,9 +165,5 @@ omit = [
"tests/*",
]

[tool.creosote]
venvs=[".venv"]
paths=["bquest", "tests"]
deps-file="pyproject.toml"
sections=["project.dependencies"]
exclude-deps=["pandas-gbq"]
[tool.deptry]
known_first_party = ["bquest"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bquest/tables.py → src/bquest/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def load_to_bq(self, bq_client: google.cloud.bigquery.Client) -> BQTable:
job.result()
except BadRequest as e:
# same error but with full error msg
raise BadRequest(str(job.errors)) from e # type: ignore
raise BadRequest(str(job.errors)) from e

return BQTable(self._original_table_id, self.fq_table_id, bq_client)

Expand Down
File renamed without changes.
2,170 changes: 789 additions & 1,381 deletions uv.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions zizmor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
rules:
unpinned-uses:
ignore:
config:
policies:
"*": ref-pin
"*": ref-pin
cache-poisoning:
disable: true
Loading