Sort imports

This commit is contained in:
David Peter 2024-08-28 17:01:09 +02:00 committed by David Peter
parent cfae9cbdab
commit bc37eff924
7 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,7 @@
import argparse import argparse
import json import json
import numpy as np import numpy as np
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()

View File

@ -12,8 +12,9 @@
import argparse import argparse
import json import json
import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("file", help="JSON file with benchmark results") parser.add_argument("file", help="JSON file with benchmark results")

View File

@ -12,9 +12,10 @@ errorbar plot."""
import argparse import argparse
import json import json
import matplotlib.pyplot as plt
import sys import sys
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("file", help="JSON file with benchmark results", nargs="+") parser.add_argument("file", help="JSON file with benchmark results", nargs="+")
parser.add_argument( parser.add_argument(

View File

@ -15,6 +15,7 @@ thermal throttling and similar effects.
import argparse import argparse
import json import json
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

View File

@ -17,6 +17,7 @@ Quoting from the matplotlib documentation:
import argparse import argparse
import json import json
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)

2
scripts/ruff.toml Normal file
View File

@ -0,0 +1,2 @@
[lint]
extend-select = ["I"]

View File

@ -13,6 +13,7 @@ the same."""
import argparse import argparse
import json import json
import sys import sys
from scipy import stats from scipy import stats
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)