From a2c083b4587b80addf684a9dc99a96a4bfe32c39 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:30:16 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.15.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.15.7) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a832683..2917f7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: '^docs/conf.py' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -19,7 +19,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.2 + rev: v0.15.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 979da29c3055424941607e54e8c1ea136479e093 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:31:28 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/requirements.txt | 4 ++-- setup.py | 10 +++++----- src/ensembldb/__init__.py | 2 +- src/ensembldb/ensdb.py | 4 ++-- tests/conftest.py | 10 +++++----- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index a1b9d2b..c20cf60 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,9 +1,9 @@ +furo +myst-nb # Requirements file for ReadTheDocs, check .readthedocs.yml. # To build the module reference correctly, make sure every external package # under `install_requires` in `setup.cfg` is also listed here! # sphinx_rtd_theme myst-parser[linkify] sphinx>=3.2.1 -myst-nb -furo sphinx-autodoc-typehints diff --git a/setup.py b/setup.py index d94e095..3e7f273 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,10 @@ """ - Setup file for ensembldb. - Use setup.cfg to configure your project. +Setup file for ensembldb. +Use setup.cfg to configure your project. - This file was generated with PyScaffold 4.6. - PyScaffold helps you to put up the scaffold of your new Python project. - Learn more under: https://pyscaffold.org/ +This file was generated with PyScaffold 4.6. +PyScaffold helps you to put up the scaffold of your new Python project. +Learn more under: https://pyscaffold.org/ """ from setuptools import setup diff --git a/src/ensembldb/__init__.py b/src/ensembldb/__init__.py index 7501a7f..9218a8e 100644 --- a/src/ensembldb/__init__.py +++ b/src/ensembldb/__init__.py @@ -17,4 +17,4 @@ from .record import EnsDbRecord from .registry import EnsDbRegistry -from .ensdb import EnsDb \ No newline at end of file +from .ensdb import EnsDb diff --git a/src/ensembldb/ensdb.py b/src/ensembldb/ensdb.py index c81d215..189dfe8 100644 --- a/src/ensembldb/ensdb.py +++ b/src/ensembldb/ensdb.py @@ -83,7 +83,7 @@ def genes(self, filter: Optional[Dict[str, Union[str, List[str]]]] = None) -> Ge entrez_col = ", g.entrezid" if has_entrez else "" query = f""" - SELECT + SELECT g.gene_id, g.gene_name, g.gene_biotype, g.seq_name, g.gene_seq_start, g.gene_seq_end, g.seq_strand{entrez_col}, c.seq_length @@ -130,7 +130,7 @@ def transcripts(self, filter: Optional[Dict[str, Union[str, List[str]]]] = None) A GenomicRanges object containing transcript coordinates and metadata. """ query = """ - SELECT + SELECT t.tx_id, t.tx_biotype, t.gene_id, t.tx_seq_start, t.tx_seq_end, g.seq_name, g.seq_strand, g.gene_name, diff --git a/tests/conftest.py b/tests/conftest.py index 260d0e0..17f527f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,10 +1,10 @@ """ - Dummy conftest.py for ensembldb. +Dummy conftest.py for ensembldb. - If you don't know what this is for, just leave it empty. - Read more about conftest.py under: - - https://docs.pytest.org/en/stable/fixture.html - - https://docs.pytest.org/en/stable/writing_plugins.html +If you don't know what this is for, just leave it empty. +Read more about conftest.py under: +- https://docs.pytest.org/en/stable/fixture.html +- https://docs.pytest.org/en/stable/writing_plugins.html """ # import pytest