From 07e81f887ca9a81a04de8712fc7131815ce70704 Mon Sep 17 00:00:00 2001 From: t7phy Date: Tue, 18 Jun 2024 15:54:18 +0200 Subject: [PATCH] isort and add scipy as dependency --- docs/source/conf.py | 3 ++- pyproject.toml | 1 + src/banana/data/db.py | 1 - tests/test_toy.py | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0060d88..dfd837b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -124,7 +124,8 @@ def run_apidoc(_): import sys # pylint: disable=import-outside-toplevel - from sphinx.ext.apidoc import main # pylint: disable=import-outside-toplevel + from sphinx.ext.apidoc import \ + main # pylint: disable=import-outside-toplevel sys.path.append(str(here.parent)) # 'banana' diff --git a/pyproject.toml b/pyproject.toml index 89fb60b..00a6644 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ PyYAML = "^6.0" click = "^8.0.3" pendulum = "^3.0.0" appdirs = "^1.4.4" +scipy = "^1.11.1" [tool.poetry.group.docs] optional = true diff --git a/src/banana/data/db.py b/src/banana/data/db.py index 26804ec..8c8e3c6 100644 --- a/src/banana/data/db.py +++ b/src/banana/data/db.py @@ -13,7 +13,6 @@ import sqlalchemy from sqlalchemy import Column, DateTime, Float, Integer, String, Text - # from sqlalchemy.sql import func from sqlalchemy.ext.declarative import declarative_base diff --git a/tests/test_toy.py b/tests/test_toy.py index 5d4b58e..68b9cda 100644 --- a/tests/test_toy.py +++ b/tests/test_toy.py @@ -1,6 +1,7 @@ -from banana import toy from scipy.integrate import quad +from banana import toy + pdf = toy.mkPDF("", 0) ff = toy.mkPDF("ToyFF_unpolarized", 0)