diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d8c075..4aae679 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: v4.4.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -18,22 +18,22 @@ repos: args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows - repo: https://github.com/PyCQA/docformatter - rev: v1.7.5 + rev: v1.7.8 hooks: - id: docformatter additional_dependencies: [tomli] args: [--in-place, --wrap-descriptions=120, --wrap-summaries=120] # --config, ./pyproject.toml -- repo: https://github.com/psf/black - rev: 23.9.1 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black language_version: python3 - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.15.12 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/setup.py b/setup.py index 6829222..e1f22c6 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ -"""Setup file for biocborn. Use setup.cfg to configure your project. +"""Setup file for biocborn. -This file was generated with PyScaffold 4.5. -PyScaffold helps you to put up the scaffold of your new Python project. -Learn more under: https://pyscaffold.org/ +Use setup.cfg to configure your project. This file was generated with PyScaffold 4.5. PyScaffold helps you to put up the +scaffold of your new Python project. Learn more under: +https://pyscaffold.org/ """ + from setuptools import setup if __name__ == "__main__": diff --git a/src/biocborn/utils.py b/src/biocborn/utils.py index bf9e4a2..61929ec 100644 --- a/src/biocborn/utils.py +++ b/src/biocborn/utils.py @@ -29,7 +29,6 @@ def factorize(x: Sequence) -> FactorizedArray: Returns: FactorizedArray: A factorized tuple. """ - if not isinstance(x, list): raise TypeError("x is not a list")