From a2c9d21758b62d08261c7782f05aea0ac1f6aeb3 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Mon, 11 Dec 2023 20:52:38 -0500 Subject: [PATCH] . --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- src/gene/database/__init__.py | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c696108..f2c8e01a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.2 + rev: v0.1.7 hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index b50d7a7d..a5fb58ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dynamic = ["version"] pg = ["psycopg[binary]"] etl = ["gffutils", "biocommons.seqrepo", "wags-tails>=0.1.1"] test = ["pytest>=6.0", "pytest-cov", "mock", "httpx"] -dev = ["pre-commit", "ruff>=0.1.2"] +dev = ["pre-commit", "ruff>=0.1.7"] docs = [ "sphinx==6.1.3", "sphinx-autodoc-typehints==1.22.0", diff --git a/src/gene/database/__init__.py b/src/gene/database/__init__.py index 216d9fb2..81f31855 100644 --- a/src/gene/database/__init__.py +++ b/src/gene/database/__init__.py @@ -1 +1,20 @@ """Provide database clients.""" +from .database import ( + AWS_ENV_VAR_NAME, + AbstractDatabase, + DatabaseException, + DatabaseInitializationException, + DatabaseReadException, + DatabaseWriteException, + create_db, +) + +__all__ = [ + "AWS_ENV_VAR_NAME", + "AbstractDatabase", + "DatabaseException", + "DatabaseInitializationException", + "DatabaseReadException", + "DatabaseWriteException", + "create_db", +]