diff --git a/Makefile b/Makefile index 5be1cf9..70e03ad 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ clean: @rm -rf *.egg-info/ build/ dist/ MANIFEST format: - isort -rc . + isort . black . black: diff --git a/setup.py b/setup.py index 9d44a03..48a0262 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,8 @@ def has_flag(compiler, flagname): """Return a boolean indicating whether a flag name is supported on the specified compiler. """ - import tempfile import os + import tempfile with tempfile.NamedTemporaryFile("w", suffix=".cpp", delete=False) as f: f.write("int main (int argc, char **argv) { return 0; }") diff --git a/test/test_dot.py b/test/test_dot.py index 222053b..750ace0 100644 --- a/test/test_dot.py +++ b/test/test_dot.py @@ -1,9 +1,9 @@ import matplotlib.pyplot as plt import numpy +import perfplot import pytest import accupy -import perfplot @pytest.mark.parametrize("cond", [1.0, 1.0e15]) diff --git a/test/test_sums.py b/test/test_sums.py index c19dee4..b424c89 100644 --- a/test/test_sums.py +++ b/test/test_sums.py @@ -1,9 +1,9 @@ import matplotlib.pyplot as plt import numpy +import perfplot import pytest import accupy -import perfplot @pytest.mark.parametrize("cond", [1.0, 1.0e15])