Skip to content

Commit c73a9df

Browse files
committed
config like omc3
1 parent bf7b224 commit c73a9df

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,7 +24,7 @@ authors = [
2424
]
2525
license = "MIT"
2626
dynamic = ["version"]
27-
requires-python = ">=3.9"
27+
requires-python = ">=3.10"
2828

2929
classifiers = [
3030
"Development Status :: 5 - Production/Stable",
@@ -33,10 +33,11 @@ classifiers = [
3333
"Natural Language :: English",
3434
"Operating System :: OS Independent",
3535
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
3938
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
40+
"Programming Language :: Python :: 3.14",
4041
"Programming Language :: Python :: Implementation :: CPython",
4142
"Topic :: Scientific/Engineering",
4243
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -73,22 +74,23 @@ changelog = "https://github.com/pylhc/optics_functions/blob/master/CHANGELOG.md"
7374
# ----- Testing ----- #
7475

7576
[tool.pytest.ini_options]
76-
addopts = "--cov-report=xml --cov-report term-missing --cov-config=pyproject.toml --cov=optics_functions"
77-
testpaths = ["tests"]
7877
markers = [
7978
"basic: basic tests run for every commit",
8079
"extended: test run on PRs",
8180
]
81+
82+
addopts = [
83+
"--import-mode=importlib",
84+
]
85+
8286
# Helpful for pytest-debugging (leave commented out on commit):
8387
# log_cli=true
8488
# log_level=DEBUG
8589

8690
[tool.coverage.run]
87-
source = ["optics_functions/"]
91+
relative_files = true
8892

8993
[tool.coverage.report]
90-
precision = 2
91-
ignore_errors = true
9294
exclude_also = [
9395
"if TYPE_CHECKING:", # do not count if TYPE_CHECKING block imports (ignored at runtime) for coverage
9496
"except ImportError:", # do not count missing optional dependencies set to None, we monkeypatch and test that

0 commit comments

Comments
 (0)