Add PEP-723 inline metadata

This commit is contained in:
David Peter 2024-08-28 16:52:02 +02:00 committed by David Peter
parent 65dd84fb07
commit cfae9cbdab
6 changed files with 42 additions and 0 deletions

View File

@ -1,4 +1,10 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "numpy",
# ]
# ///
import argparse
import json

View File

@ -1,4 +1,12 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "matplotlib",
# "pyqt6",
# "numpy",
# ]
# ///
"""This program shows `hyperfine` benchmark results as a histogram."""

View File

@ -1,4 +1,11 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "matplotlib",
# "pyqt6",
# ]
# ///
"""This program shows parametrized `hyperfine` benchmark results as an
errorbar plot."""

View File

@ -1,4 +1,12 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "pyqt6",
# "matplotlib",
# "numpy",
# ]
# ///
"""This program shows `hyperfine` benchmark results in a sequential way
in order to debug possible background interference, caching effects,

View File

@ -1,4 +1,11 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "matplotlib",
# "pyqt6",
# ]
# ///
"""This program shows `hyperfine` benchmark results as a box and whisker plot.

View File

@ -1,4 +1,10 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "scipy",
# ]
# ///
"""This script performs Welch's t-test on a JSON export file with two
benchmark results to test whether or not the two distributions are