Skip to content

Commit

Permalink
Merge pull request #374 from lsst-sqre/tickets/DM-46480
Browse files Browse the repository at this point in the history
tickets/DM-46480: adopt shared rubin-nublado-client
  • Loading branch information
athornton authored Oct 29, 2024
2 parents 76dd4f6 + 749606c commit be04caa
Show file tree
Hide file tree
Showing 27 changed files with 2,681 additions and 3,097 deletions.
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

0 comments on commit be04caa

Please sign in to comment.