From bc37eff924fcfff76abb8ece2e0a8ce6c043250f Mon Sep 17 00:00:00 2001 From: David Peter Date: Wed, 28 Aug 2024 17:01:09 +0200 Subject: [PATCH] Sort imports --- scripts/advanced_statistics.py | 1 + scripts/plot_histogram.py | 3 ++- scripts/plot_parametrized.py | 3 ++- scripts/plot_progression.py | 1 + scripts/plot_whisker.py | 1 + scripts/ruff.toml | 2 ++ scripts/welch_ttest.py | 1 + 7 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 scripts/ruff.toml diff --git a/scripts/advanced_statistics.py b/scripts/advanced_statistics.py index 114ecb9..01880c7 100755 --- a/scripts/advanced_statistics.py +++ b/scripts/advanced_statistics.py @@ -8,6 +8,7 @@ import argparse import json + import numpy as np parser = argparse.ArgumentParser() diff --git a/scripts/plot_histogram.py b/scripts/plot_histogram.py index 2f13e89..cc11677 100755 --- a/scripts/plot_histogram.py +++ b/scripts/plot_histogram.py @@ -12,8 +12,9 @@ import argparse import json -import numpy as np + import matplotlib.pyplot as plt +import numpy as np parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("file", help="JSON file with benchmark results") diff --git a/scripts/plot_parametrized.py b/scripts/plot_parametrized.py index 89eabb4..8ab4bc8 100755 --- a/scripts/plot_parametrized.py +++ b/scripts/plot_parametrized.py @@ -12,9 +12,10 @@ errorbar plot.""" import argparse import json -import matplotlib.pyplot as plt import sys +import matplotlib.pyplot as plt + parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("file", help="JSON file with benchmark results", nargs="+") parser.add_argument( diff --git a/scripts/plot_progression.py b/scripts/plot_progression.py index a555e01..61b88eb 100755 --- a/scripts/plot_progression.py +++ b/scripts/plot_progression.py @@ -15,6 +15,7 @@ thermal throttling and similar effects. import argparse import json + import matplotlib.pyplot as plt import numpy as np diff --git a/scripts/plot_whisker.py b/scripts/plot_whisker.py index c08eda0..5aeb74d 100755 --- a/scripts/plot_whisker.py +++ b/scripts/plot_whisker.py @@ -17,6 +17,7 @@ Quoting from the matplotlib documentation: import argparse import json + import matplotlib.pyplot as plt parser = argparse.ArgumentParser(description=__doc__) diff --git a/scripts/ruff.toml b/scripts/ruff.toml new file mode 100644 index 0000000..42ce445 --- /dev/null +++ b/scripts/ruff.toml @@ -0,0 +1,2 @@ +[lint] +extend-select = ["I"] diff --git a/scripts/welch_ttest.py b/scripts/welch_ttest.py index 7dff7ae..78d6303 100755 --- a/scripts/welch_ttest.py +++ b/scripts/welch_ttest.py @@ -13,6 +13,7 @@ the same.""" import argparse import json import sys + from scipy import stats parser = argparse.ArgumentParser(description=__doc__)