Skip to content

Commit 49b5c1b

Browse files
committed
3.14 tag, drop 3.10, coverage config like omc3
1 parent 2915ab1 commit 49b5c1b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pyproject.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ authors = [
2424
]
2525
license = "MIT"
2626
dynamic = ["version"]
27-
requires-python = ">=3.9"
27+
requires-python = ">=3.10"
2828

2929
classifiers = [
3030
"Intended Audience :: Science/Research",
3131
"License :: OSI Approved :: MIT License",
3232
"Natural Language :: English",
3333
"Operating System :: OS Independent",
3434
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
3736
"Programming Language :: Python :: 3.11",
3837
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
39+
"Programming Language :: Python :: 3.14",
3940
"Programming Language :: Python :: Implementation :: CPython",
4041
"Topic :: Scientific/Engineering",
4142
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -86,21 +87,22 @@ changelog = "https://github.com/pylhc/PyLHC/blob/master/CHANGELOG.md"
8687
# ----- Testing ----- #
8788

8889
[tool.pytest.ini_options]
89-
addopts = "--cov-report=xml --cov-report term-missing --cov-config=pyproject.toml --cov=pylhc"
90-
testpaths = ["tests"]
9190
markers = [
9291
"cern_network: tests that require access to afs or the technical network",
9392
]
93+
94+
addopts = [
95+
"--import-mode=importlib",
96+
]
97+
9498
# Helpful for pytest-debugging (leave commented out on commit):
9599
# log_cli=true
96100
# log_level=DEBUG
97101

98102
[tool.coverage.run]
99-
source = ["pylhc/"]
103+
relative_files = true
100104

101105
[tool.coverage.report]
102-
precision = 2
103-
ignore_errors = true
104106
exclude_also = [
105107
"if TYPE_CHECKING:", # do not count if TYPE_CHECKING block imports (ignored at runtime) for coverage
106108
"except ImportError:", # do not count missing optional dependencies set to None, we monkeypatch and test that

0 commit comments

Comments
 (0)