From 0c6b6329a3f3f8c3533d847748e4aabee4971835 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:50:39 +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/asottile/pyupgrade: v3.15.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.2) - [github.com/nbQA-dev/nbQA: 1.7.1 → 1.8.5](https://github.com/nbQA-dev/nbQA/compare/1.7.1...1.8.5) - [github.com/psf/black: 23.12.1 → 24.3.0](https://github.com/psf/black/compare/23.12.1...24.3.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcd2af8..3928304 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [ --py38-plus ] @@ -54,7 +54,7 @@ repos: # Notebook formatting - repo: https://github.com/nbQA-dev/nbQA - rev: 1.7.1 + rev: 1.8.5 hooks: - id: nbqa-isort additional_dependencies: [ isort ] @@ -75,6 +75,6 @@ repos: args: [ '--futures=true' ] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.3.0 hooks: - id: black From 34edcd6c1c03873666cca43d1e73e6977b64d81d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:51:00 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_pdf_cmsshape.py | 1 + tests/test_pdf_conv.py | 1 + tests/test_pdf_kde.py | 1 + tests/test_pdf_relbw.py | 1 + zfit_physics/__init__.py | 1 + zfit_physics/models/pdf_argus.py | 1 + zfit_physics/models/pdf_example.py | 1 + 7 files changed, 7 insertions(+) diff --git a/tests/test_pdf_cmsshape.py b/tests/test_pdf_cmsshape.py index f91d859..b79eb2c 100644 --- a/tests/test_pdf_cmsshape.py +++ b/tests/test_pdf_cmsshape.py @@ -1,4 +1,5 @@ """Tests for CMSShape PDF.""" + import numpy as np import pytest import tensorflow as tf diff --git a/tests/test_pdf_conv.py b/tests/test_pdf_conv.py index e671dc7..1401c31 100644 --- a/tests/test_pdf_conv.py +++ b/tests/test_pdf_conv.py @@ -1,4 +1,5 @@ """Example test for a pdf or function.""" + import numpy as np import pytest import tensorflow as tf diff --git a/tests/test_pdf_kde.py b/tests/test_pdf_kde.py index 6633fad..d7afdba 100644 --- a/tests/test_pdf_kde.py +++ b/tests/test_pdf_kde.py @@ -1,4 +1,5 @@ """Example test for a pdf or function.""" + import numpy as np import pytest import tensorflow as tf diff --git a/tests/test_pdf_relbw.py b/tests/test_pdf_relbw.py index 9da735b..8a2dd6f 100644 --- a/tests/test_pdf_relbw.py +++ b/tests/test_pdf_relbw.py @@ -1,4 +1,5 @@ """Tests for relativistic Breit-Wigner PDF.""" + import pytest import tensorflow as tf import zfit diff --git a/zfit_physics/__init__.py b/zfit_physics/__init__.py index 737aead..6220aae 100644 --- a/zfit_physics/__init__.py +++ b/zfit_physics/__init__.py @@ -1,4 +1,5 @@ """Top-level package for zfit.""" + from pkg_resources import get_distribution __version__ = get_distribution(__name__).version diff --git a/zfit_physics/models/pdf_argus.py b/zfit_physics/models/pdf_argus.py index 028657a..2b0e155 100644 --- a/zfit_physics/models/pdf_argus.py +++ b/zfit_physics/models/pdf_argus.py @@ -1,4 +1,5 @@ """ARGUS PDF (https://en.wikipedia.org/wiki/ARGUS_distribution)""" + from typing import Optional import numpy as np diff --git a/zfit_physics/models/pdf_example.py b/zfit_physics/models/pdf_example.py index d15da3c..e1840e2 100644 --- a/zfit_physics/models/pdf_example.py +++ b/zfit_physics/models/pdf_example.py @@ -2,6 +2,7 @@ Create a module for each pdf that you add. """ + import zfit