Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent e21f8cd commit 8050391
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 166 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ repos:
- --repo-title=TensorWaves
- id: colab-toc-visible
- id: fix-nbformat-version
- id: format-setup-cfg
- id: set-nb-cells
args:
- --add-install-cell
Expand Down Expand Up @@ -174,3 +173,10 @@ repos:
rev: v0.8.1
hooks:
- id: taplo

- repo: https://github.com/pappasam/toml-sort
rev: PLEASE-UPDATE
hooks:
- id: toml-sort
args:
- --in-place
3 changes: 3 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ exclude = [
]

[formatting]
align_comments = false
align_entries = false
allowed_blank_lines = 1
array_auto_collapse = false
array_auto_expand = true
array_trailing_comma = true
column_width = 88
compact_inline_tables = true
indent_string = " "
reorder_arrays = true
reorder_keys = true
198 changes: 196 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build-system]
requires = [
"setuptools>=36.2.1", # environment markers
"setuptools>=61.2",
"setuptools_scm",
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "src/tensorwaves/version.py"
Expand Down Expand Up @@ -249,3 +249,197 @@ task-tags = ["cspell"]

[tool.ruff.pydocstyle]
convention = "google"

[tool.tomlsort]
all = false
ignore_case = true
in_place = true
sort_first = [
"build-system",
"project",
"tool.setuptools",
"tool.setuptools_scm",
]
sort_table_keys = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = false

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false

[tool.setuptools.package-data]
tensorwaves = ["py.typed"]

[project]
name = "tensorwaves"
description = "Python fitter package for multiple computational back-ends"
authors = [{name = "Common Partial Wave Analysis", email = "compwa-admin@ep1.rub.de"}]
maintainers = [{email = "compwa-admin@ep1.rub.de"}]
license = {text = "GPLv3 or later"}
keywords = [
"HEP",
"PWA",
"amplitude analysis",
"partial wave analysis",
"particle physics",
"physics",
"tensorflow",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
requires-python = ">=3.7"
dependencies = [
"attrs >=20.1.0", # https://www.attrs.org/en/stable/api.html#next-gen
"iminuit >=2.0",
"numpy",
"PyYAML >=5.1", # https://stackoverflow.com/a/55171433
"sympy >=1.9", # lambdify cse
"tqdm >=4.24.0", # autonotebook
]
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Tracker = "https://github.com/ComPWA/tensorwaves/issues"
Changelog = "https://github.com/ComPWA/tensorwaves/releases"
Documentation = "https://tensorwaves.rtfd.io"
Source = "https://github.com/ComPWA/tensorwaves"

[project.optional-dependencies]
jax = [
"jax",
"jaxlib",
]
numba = [
"numba",
]
tf = [
"tensorflow >=2.4", # tensorflow.experimental.numpy
]
tensorflow = [
"tensorwaves[tf]",
]
phsp = [
"tensorwaves[tensorflow]",
"phasespace[tf] >=1.7.0",
'phasespace <1.9.0; python_version <"3.8.0"',
]
phasespace = [
"tensorwaves[phsp]",
]
pwa = [
"tensorwaves[phsp]",
"ampform >=0.12.0", # https://github.com/ComPWA/ampform/pull/177
]
scipy = [
"scipy >=1",
]
viz = [
"graphviz",
]
all = [
"tensorwaves[jax]",
"tensorwaves[numba]",
"tensorwaves[pwa]",
"tensorwaves[scipy]",
"tensorwaves[tensorflow]",
"tensorwaves[viz]",
]
doc = [
"tensorwaves[all]",
'importlib-metadata; python_version <"3.8.0"',
"ipympl",
"jupyter",
"matplotlib",
"myst-nb >=0.14", # nb_ configuration prefixes
"nbclient >=0.5.5", # https://github.com/executablebooks/jupyter-book/issues/833
"pandas",
"Sphinx >=3",
"sphinx-book-theme",
"sphinx-codeautolink[ipython]",
"sphinx-comments",
"sphinx-copybutton",
"sphinx-design",
"sphinx-thebe",
"sphinx-togglebutton",
"sphobjinv",
]
test-types = [
"ipython", # test _repr_pretty_
"pytest",
"pytest-mock >=3.3.0",
]
test = [
"tensorwaves[test-types]",
"ampform >=0.13", # https://github.com/ComPWA/ampform/issues/208
"nbmake",
'nbmake <1.3; python_version <"3.8.0"',
"pytest-benchmark",
"pytest-cov",
"pytest-xdist",
]
format = [
"black",
]
mypy = [
"tensorwaves[jax]",
"tensorwaves[pwa]",
"tensorwaves[test-types]",
"mypy >=0.570", # attrs support
"types-docutils",
"types-pkg-resources",
"types-PyYAML",
"types-requests",
"types-setuptools",
]
lint = [
"tensorwaves[mypy]",
"ruff",
]
sty = [
"tensorwaves[format]",
"tensorwaves[lint]",
"pre-commit >=1.4.0",
]
jupyter = [
"tensorwaves[doc]",
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-server[rope]",
'ypy-websocket <0.8.3; python_version <"3.8.0"',
]
dev = [
"tensorwaves[all]",
"tensorwaves[doc]",
"tensorwaves[jupyter]",
"tensorwaves[sty]",
"tensorwaves[test]",
"sphinx-autobuild",
"tox >=1.9", # for skip_install, use_develop
]
Loading

1 comment on commit 8050391

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'TensorWaves benchmark results'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 8050391 Previous: 21a21ba Ratio
benchmarks/expression.py::test_fit[1000-Minuit2-numpy] 4.6323971180320305 iter/sec (stddev: 0.008110164911019298) 15.091606902802761 iter/sec (stddev: 0.001597165128720511) 3.26
benchmarks/expression.py::test_fit[1000-Minuit2-numba] 4.713991185328787 iter/sec (stddev: 0.0030309479362618944) 15.34321286069892 iter/sec (stddev: 0.00031312238963395535) 3.25
benchmarks/expression.py::test_fit[1000-ScipyMinimizer-numpy] 4.592452902694003 iter/sec (stddev: 0.008111198952257898) 15.246453009664432 iter/sec (stddev: 0.0002718823501960658) 3.32
benchmarks/expression.py::test_fit[1000-ScipyMinimizer-numba] 4.695241530375263 iter/sec (stddev: 0.0011312389056179202) 15.543662382731911 iter/sec (stddev: 0.0009863915622336588) 3.31

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.