Move profiler to a dedicated folder
diff --git a/profiler/requirements.txt b/profiler/requirements.txt
new file mode 100644
index 0000000..c65a7f7
--- /dev/null
+++ b/profiler/requirements.txt
@@ -0,0 +1 @@
+pytest-profiling
diff --git a/tests/test_for_profiler.py b/profiler/test_for_profiler.py
similarity index 95%
rename from tests/test_for_profiler.py
rename to profiler/test_for_profiler.py
index df519b7..0d5e079 100644
--- a/tests/test_for_profiler.py
+++ b/profiler/test_for_profiler.py
@@ -12,7 +12,7 @@
import tomli
-def test_for_profiler():
+def test_for_profiler() -> None:
path = Path(__file__).parent.parent / "benchmark" / "data.toml"
benchmark_toml = path.read_bytes().decode()
# increase the count here to reduce the impact of
diff --git a/pyproject.toml b/pyproject.toml
index 701d556..cc112e6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -75,14 +75,12 @@
[testenv:profile]
description = run profiler (use e.g. `firefox .tox/prof/combined.svg` to open)
-skip_install = True
setenv =
PROFILER_ITERATIONS=1000
deps =
- -r tests/requirements.txt
- pytest-profiling
+ -r profiler/requirements.txt
commands =
- pytest tests/test_for_profiler.py --profile-svg --pstats-dir "{toxworkdir}/prof"
+ pytest profiler/test_for_profiler.py --profile-svg --pstats-dir "{toxworkdir}/prof"
python -c 'import pathlib; print("profiler svg output under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "prof" / "combined.svg"))'
[testenv:pre-commit]