Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tickets/DM-46480: adopt shared rubin-nublado-client #374

Merged
merged 6 commits into from
Oct 29, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.7.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==24.3.0]
Expand Down
5 changes: 5 additions & 0 deletions changelog.d/20241017_100200_athornton_DM_46480.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Delete the sections that don't apply -->

### Other changes

- Replace internal client with rubin-nublado-client from `nublado` repo.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ warn_required_dynamic_aliases = true
warn_untyped_fields = true

[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "strict"
filterwarnings = [
# Bug in aiojobs
Expand Down Expand Up @@ -124,6 +125,9 @@ extend = "ruff-shared.toml"
"src/mobu/services/business/tap.py" = [
"ASYNC110", # TAP code could be rewritten to poll state differently
]
"src/mobu/services/monkey.py" = [
"SIM115", # We do want a NamedTemporaryFile not in a context manager
]
"tests/data/**/*.ipynb" = [
"T201", # test notebooks are allowed to use print
]
Expand Down
1,279 changes: 667 additions & 612 deletions requirements/dev.txt

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion requirements/main.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ httpx
httpx-sse
jinja2
pydantic>2
pydantic-settings
pydantic-settings==2.5.2
# 2.6 dies horribly with:
# pydantic_core._pydantic_core.ValidationError: 1 validation error for GitHubRefreshAppConfig
# MOBU_GITHUB_REFRESH_APP_WEBHOOK_SECRET
# Field required [type=missing, input_value={'accepted_github_orgs': ...', 'org2', 'lsst-sqre']}, input_type=dict]
# For further information visit https://errors.pydantic.dev/2.9/v/missing
pyvo
pyyaml
#rubin-nublado-client@git+https://github.com/lsst-sqre/nublado@tickets/DM-46480#subdirectory=client
rubin.nublado.client
safir>=6.1.0
shortuuid
structlog
Expand Down
1,781 changes: 1,077 additions & 704 deletions requirements/main.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/mobu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""The mobu service."""

__all__ = ["__version__", "metadata"]
__all__ = ["__version__", "metadata", "main"]

from importlib.metadata import PackageNotFoundError, version

Expand Down
Loading
Loading