From 4df42816623914b0e732e32d7b9da88ae343a7c3 Mon Sep 17 00:00:00 2001 From: Jonas Eschle Date: Sat, 12 Oct 2024 22:30:21 -0400 Subject: [PATCH] enh: add compwa PDF wrapper --- .gitignore | 1 + .pre-commit-config.yaml | 81 +++++++++---------- .../zfit_physics}/roofit/__init__.py | 0 .../zfit_physics}/roofit/loss.py | 0 .../zfit_physics}/roofit/variables.py | 0 5 files changed, 39 insertions(+), 43 deletions(-) rename {zfit_physics => src/zfit_physics}/roofit/__init__.py (100%) rename {zfit_physics => src/zfit_physics}/roofit/loss.py (100%) rename {zfit_physics => src/zfit_physics}/roofit/variables.py (100%) diff --git a/.gitignore b/.gitignore index 1d59eb1..3eabf56 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,4 @@ venv.bak/ # mypy .mypy_cache/ /.idea/sonarlint/* +/src/zfit_physics/_version.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f92d0e3..7b9ab3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ ci: - autoupdate_schedule: quarterly + autoupdate_schedule: quarterly repos: -- repo: https://github.com/pre-commit/pre-commit-hooks + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: check-added-large-files @@ -18,72 +18,67 @@ repos: - id: detect-private-key - id: fix-byte-order-marker - id: check-ast - rev: v1.10.0 - hooks: - - id: python-use-type-annotations - - id: python-check-mock-methods - - id: python-no-eval - - id: rst-directive-colons -- repo: https://github.com/PyCQA/isort + + - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: - - id: isort -- repo: https://github.com/asottile/pyupgrade + - id: isort + - repo: https://github.com/asottile/pyupgrade rev: v3.17.0 hooks: - - id: pyupgrade + - id: pyupgrade args: - - --py38-plus -- repo: https://github.com/asottile/setup-cfg-fmt + - --py38-plus + - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.5.0 hooks: - - id: setup-cfg-fmt + - id: setup-cfg-fmt args: - - --max-py-version=3.12 - - --include-version-classifiers -- repo: https://github.com/nbQA-dev/nbQA + - --max-py-version=3.12 + - --include-version-classifiers + - repo: https://github.com/nbQA-dev/nbQA rev: 1.8.7 hooks: - - id: nbqa-isort + - id: nbqa-isort additional_dependencies: - - isort - - id: nbqa-pyupgrade + - isort + - id: nbqa-pyupgrade additional_dependencies: - - pyupgrade + - pyupgrade args: - - --py38-plus -- repo: https://github.com/mgedmin/check-manifest + - --py38-plus + - repo: https://github.com/mgedmin/check-manifest rev: '0.49' hooks: - - id: check-manifest + - id: check-manifest stages: - - manual -- repo: https://github.com/sondrelg/pep585-upgrade + - manual + - repo: https://github.com/sondrelg/pep585-upgrade rev: v1.0 hooks: - - id: upgrade-type-hints + - id: upgrade-type-hints args: - - --futures=true -- repo: https://github.com/MarcoGorelli/auto-walrus + - --futures=true + - repo: https://github.com/MarcoGorelli/auto-walrus rev: 0.3.4 hooks: - - id: auto-walrus + - id: auto-walrus - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.6.9" hooks: - - id: ruff + - id: ruff types_or: - - python - - pyi - - jupyter + - python + - pyi + - jupyter args: - - --fix - - --unsafe-fixes - - --show-fixes - - --line-length=120 - - id: ruff-format + - --fix + - --unsafe-fixes + - --show-fixes + - --line-length=120 + - id: ruff-format types_or: - - python - - pyi - - jupyter + - python + - pyi + - jupyter diff --git a/zfit_physics/roofit/__init__.py b/src/zfit_physics/roofit/__init__.py similarity index 100% rename from zfit_physics/roofit/__init__.py rename to src/zfit_physics/roofit/__init__.py diff --git a/zfit_physics/roofit/loss.py b/src/zfit_physics/roofit/loss.py similarity index 100% rename from zfit_physics/roofit/loss.py rename to src/zfit_physics/roofit/loss.py diff --git a/zfit_physics/roofit/variables.py b/src/zfit_physics/roofit/variables.py similarity index 100% rename from zfit_physics/roofit/variables.py rename to src/zfit_physics/roofit/variables.py