Skip to content

Commit b69dbe6

Browse files
authored
chore: updating test suite (#597)
* chore: add dev tool, fixup warnings * chore: fixes in tests
1 parent 9d8d349 commit b69dbe6

19 files changed

+907
-43
lines changed

pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dev = [
3939
"bumpversion",
4040
"jupyter",
4141
"pre-commit",
42+
"questionary",
4243
"twine",
4344
]
4445
test = [
@@ -62,6 +63,9 @@ all = [
6263
[project.urls]
6364
Homepage = "https://github.com/scikit-hep/mplhep"
6465

66+
[project.scripts]
67+
dev = "mplhep._dev:main"
68+
6569

6670
[tool.hatch]
6771
version.source = "vcs"
@@ -79,7 +83,7 @@ dev-dependencies = [
7983

8084
[tool.mypy]
8185
files = ["src"]
82-
python_version = 3.8
86+
python_version = "3.8"
8387
warn_unused_configs = true
8488

8589
allow_redefinition = true
@@ -98,16 +102,16 @@ check_untyped_defs = false
98102
# strict_equality = true
99103

100104
[[tool.mypy.overrides]]
101-
module = ["matplotlib.*", "cycler", "scipy.*", "mpl_toolkits.*", "mplhep_data"]
105+
module = ["matplotlib.*", "cycler", "scipy.*", "mpl_toolkits.*", "mplhep_data", "questionary.*"]
102106
ignore_missing_imports = true
103107

104108

105109
# Additional configuration is in matplotlib/testing/conftest.py.
106-
[tool.pytest.ini_config]
110+
[tool.pytest.ini_options]
107111
minversion = 6.0
108112
testpaths = ["tests"]
109113
python_files = "test*.py"
110-
114+
asyncio_default_fixture_loop_scope = "session"
111115

112116
[tool.ruff.lint]
113117
extend-select = [
@@ -149,3 +153,4 @@ ignore = [
149153
[tool.ruff.lint.per-file-ignores]
150154
"tests/**" = ["T20"]
151155
"docs/conf.py" = ["T20"]
156+
"src/mplhep/_dev.py" = ["T20"]

0 commit comments

Comments
 (0)